DoCmd.TransferSpreadsheet
Mongo,
Thanks for your quick reply, I was able to view the code immediately. I have another question. The reason I need to change the code is because I am using the DoCmd.TransferSpreadsheet method to import an Excel spreadsheet. Access is looking at a field that contains numerical data for the first 200 lines and assuming the entire field is numeric, but it is not. In turn, it is producing an Import Spreadsheet Errors table and not importing the remaining text values for this field. I have set the field to text in Excel but I still get the errors. I wanted to change the code so that I can specify the fields and their data types in Excel. Can this be done at all?
Thanks again for your help!!
Re: DoCmd.TransferSpreadsheet
You can use TransferSpreadsheet method, but like you've found there are gotchas. Would it not be easier to create a link in Access to your Excel table, instead?