Link to home
Start Free TrialLog in
Avatar of rgrguric
rgrguric

asked on

Invalid Argument Error When Running docmd.transfertext Twice

When I run the following code... either in a row or in 2 different spots in the code I get an "Error Invalid Argument" when trying to execute the second docmd.transfertext.

Is there a a way to take the same data and import it into 2 different tables at the same time... or after importing copy the data from one table to the other?
DoCmd.TransferText acImportDelim, "Grps Import Specification", "Grps", "C:\Grps_" & Yr & Mth & Dy & ".txt"
        
DoCmd.TransferText acImportDelim, "Grps Import Specification", "NewGrps", "C:\Grps_" & Yr & Mth & Dy & ".txt"

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of TextReport
TextReport
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial