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

x
?
Solved

Macro Error when Transferring Text

Posted on 2013-06-12
6
Medium Priority
?
272 Views
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.
CostInfoMtd.csv
MacroError.xlsx
0
Comment
Question by:gmapdc
  • 3
  • 3
6 Comments
 
LVL 35

Expert Comment

by:Norie
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.
0
 

Author Comment

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

Author Comment

by:gmapdc
ID: 39260346
Question is still open - need help!
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 35

Accepted Solution

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

Author Comment

by:gmapdc
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.
0
 
LVL 35

Expert Comment

by:Norie
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.
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

772 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