Can't seem to get this running.
DoCmd.RunSQL "INSERT INTO tblTrackingParse (Tracking_ID, BoxNumber, FileNumber, TrackingDate) SELECT key AS Tracking_ID, BoxNumber, FileNumber, TrackingDate FROM TrackingTable WHERE TrackingDate BETWEEN #" & Format(CDate("04/01/2010"), "mm/dd/yyyy")& "# AND #" & Format(CDate("04/16/2010") & "#);"
It works without the where clause for the date.
The final version will pass in string variables.
Thanks
John Fuhrman
DoCmd.RunSQL "INSERT INTO tblTrackingParse (Tracking_ID, BoxNumber, FileNumber, TrackingDate) SELECT key AS Tracking_ID, BoxNumber, FileNumber, TrackingDate FROM TrackingTable WHERE TrackingDate BETWEEN #" & Format(CDate("04/01/2010"), "mm/dd/yyyy")& "# AND #" & Format(CDate("04/16/2010") & "#);"
It works without the where clause for the date.
The final version will pass in string variables.
Thanks
John Fuhrman