Macro Error when Transferring Text

Posted on 2013-06-12
Last Modified: 2013-06-20
Following is the Macro command
mport Delimited, CostInfoMtd Import Specification, TCPlusEngrHrsMTD, \\MAINSERVER\Access Application\CostInfoMTD.csv, Yes, ,

This works when I do the manual import, but does not work when I use the macro action...get error "Query must have at least one destination file".

Attached are screen shot of the Import Spec, plus the .csv being imported.

I've seen some issues re "trusted files", but the .csv file is in the same folder as the Access 2007 Application.
Question by:gmapdc
  • 3
  • 3
LVL 33

Expert Comment

ID: 39243011
Are you importing directly to an existing table?

If you are perhaps you should import into a new table and then append the data to the existing table.

Author Comment

ID: 39245359
I tried importing to a new table, but got the same error.

Author Comment

ID: 39260346
Question is still open - need help!
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

LVL 33

Accepted Solution

Norie earned 500 total points
ID: 39260383
You've selected Skip for all the fields in the import specification.

Author Comment

ID: 39263232
My BAD - I was trying to check to include the fields - completely missed the header that said
said "Skip".   Thank you so much for your help.
LVL 33

Expert Comment

ID: 39263320
No problem.

I should have spotted it earlier but I only had a quick look at the image of the import specification and it looked fine.

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now