Rance_Hall
asked on
how to export query results to a .csv file
I need to end up with a csv file that can be used for import and export from one program into another.
I have an access database that reads the data from one program via odbc, massages it and preps it for export into the second program.
there is a query that orders the data for presentation and its the query results that need to end up as the csv file.
I found transfertext, but that only works on tables, not query results. the table is all text and doesnt export in the correct order. so I added a query to sort the data.
Any hints?
ACCESS 07 is the version
I have an access database that reads the data from one program via odbc, massages it and preps it for export into the second program.
there is a query that orders the data for presentation and its the query results that need to end up as the csv file.
I found transfertext, but that only works on tables, not query results. the table is all text and doesnt export in the correct order. so I added a query to sort the data.
Any hints?
ACCESS 07 is the version
Sure it works on queries. have you tried?
ASKER
Yes I tried, I get and error from the transfertext function, if I name a query instead of a table I get this error:
I got a Run Time Error '2495'
The Action or Method requires a Table Name argument
I got a Run Time Error '2495'
The Action or Method requires a Table Name argument
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I dont have a space in the query name, but I didnt have the query name in quotes ("") I didnt think you needed them when there werent spaces, but now its working, thanks for the reminder.
R
R
Glad to help. (On my way to the next level.)