Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access External data > Validate File b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 10873 of 11313
Post > Topic >>

Validate File before imort

by =?Utf-8?B?Sm9obg==?= <John@[EMAIL PROTECTED] > Aug 1, 2008 at 11:20 AM

I have an "im****t" button on a form that prompts the user to select a file
to 
im****t.  The file must be an Excel file that contains the proper data. The

im****t works great, but now I am trying to "idiot proof" the code.  How is

this best done?  I need to check the type of file they selected (IE: type
= 
XLS) and some key information in the second record of the sheet.  Here's
the 
code I am using to im****t:

            
DoCmd.TransferSpreadsheet acIm****t, acSpreadsheetTypeExcel5, "tblMonthly",

fn, True

Does the "...acSpreadsheetTypeExcel5..." ensure that it's an excel 
spreadsheet?

-- 
Thanks - John
 




 5 Posts in Topic:
Validate File before imort
=?Utf-8?B?Sm9obg==?= <  2008-08-01 11:20:09 
Re: Validate File before imort
"bhicks11 via Access  2008-08-02 13:37:07 
Re: Validate File before imort
=?Utf-8?B?Sm9obg==?= <  2008-08-02 12:23:01 
Re: Validate File before imort
"bhicks11 via Access  2008-08-02 20:18:22 
RE: Validate File before imort
=?Utf-8?B?Sm9obg==?= <  2008-08-02 13:30:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 18:36:11 CST 2008.