I have already achieved this in access and was trying with straight SQL earlier I would just like to know what I'm doing wrong in sql or what syntax I'm missing. I have three tables with identical data that was created from .txt delimited files I have received. I tried the following code.
So basically I am trying to get the records from three tables that contain iload as a value into a new table. In the end I just imported the information into a table called STD then imported the other two .txt files into that table using access. Then wrote an sql statement to get the information I needed out of one table which works.
The first code basically causes an error, this field may exist in more than one table. I not comparing values though I just want all the records which are unique into another table using SQL statement similiar to the first bit of code.
Code:
SELECT VIN, OtherID, Rego, DriverName, OwnerName, VehicleDescription, ExpiryDate, Address, City, Postcode, State INTO Iload FROM STDhy60, STDhy59, STDhy55 WHERE VehicleDescription like '*iLOAD*';
Code:
SELECT VIN, OtherID, Rego, DriverName, OwnerName, VehicleDescription, ExpiryDate, Address, City, Postcode, State INTO Iload FROM STD WHERE VehicleDescription like '*iLOAD*';
Comment