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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Into Table Question! 1

Status
Not open for further replies.

proximity

Technical User
Sep 19, 2002
132
GB
Hi,

I am attempting to take some data off a database on a usb drive and append it to a table on the c drive. I can't get the syntax right . . . ! Any ideas:

DoCmd.RunSQL "INSERT INTO tblEdadCollation1 " & _
"SELECT tblEdadCollation.* " & _
"FROM (A:\Removable Storage\EdadDataTransferUtility.mdb).tblEdadCollation " & _
"WHERE (A:\Removable Storage\EdadDataTransferUtility.mdb).tblEdadCollation.Date=Date()-30;"

Thanks, as ever,

--
Steven
 
How about:

[tt]DoCmd.RunSQL "INSERT INTO tblEdadCollation1 " & _
"SELECT X.* " & _
"FROM tblEdadCollation X " & _
"IN 'A:\Removable Storage\EdadDataTransferUtility.mdb' " & _
"WHERE X.Date=Date()-30;"[/tt]


 
Thanks Remou,

That worked brilliantly!

--
Steven
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top