Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

External table is not the expected format.... Access transferspreadsheet function

Posted on 2011-09-29
2
Medium Priority
?
1,217 Views
Last Modified: 2012-06-27
I'm using the Transferspreadsheet function to import an Excel file using the following code.  I've checked the values in the variables with msgbox but get the "External table is not in the expected format" error.  The file is in the location....

DoCmd.TransferSpreadsheet acImport, , "Clarity_Project_Information", varClarityFilePath & varClarityFileName, True

Thanks for your help,
je
0
Comment
Question by:aeolianje
  • 2
2 Comments
 

Accepted Solution

by:
aeolianje earned 0 total points
ID: 36817719
duh -- when the xls file was generated from an external application, it saved as XML with .xls extension.... problem solved....
0
 

Author Closing Comment

by:aeolianje
ID: 36817723
problem solved
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final pā€¦

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question