Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Query Export - Append to Excel

Status
Not open for further replies.

darinmc

Technical User
Feb 27, 2005
171
GB
Hi
I have a query and am using the below
Code:
Dim StrFileName, StrFile
StrFileName = "TEST100"
StrFile = "\\Lynxserver\lynx\Payroll\NewEmployeesSAGE\" & StrFileName & ".csv"
DoCmd.TransferText acExportDelim, , "SAGE UnionTEST", StrFile, False

The csv file always has the same name

How do I get the data to append to the exisiting data or do I need to do something else?

Thx
Darin
 
A common way is to import into a temporary table and then append validated data in the permanent table(s).

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top