Guest_imported
New member
- Jan 1, 1970
- 0
I used the following code trying to add records from a table in another database in a different direcroty to a table in the currently open database:
INSERT INTO [Accident Data] select *
FROM C:\TRAFFIC\DOWNLOAD\DOWNLOAD.[Accident Data];
When I try to execute this code, I get the error Expected end of statement. I have two questions:
1. What is the proper syntax for this code to execute?
2. There is a unique field in the destination table. How can I avoid the program crashing because of an non-unique entry being imported?
INSERT INTO [Accident Data] select *
FROM C:\TRAFFIC\DOWNLOAD\DOWNLOAD.[Accident Data];
When I try to execute this code, I get the error Expected end of statement. I have two questions:
1. What is the proper syntax for this code to execute?
2. There is a unique field in the destination table. How can I avoid the program crashing because of an non-unique entry being imported?