Hello -
I've created an append query that works great, except for the fact that when the query is run a second time, it creates duplicate records. I would like to have the query append only the new records to the second table.
The table that has the existing records is called "tbl_Pending_VPN_Forms" and contains the following columns:
PendingVPNFormID (primary key)
Hub_Name
Hub_City
Hub_Zip_Code
Hub_Latitude
Hub_Longitude
Site_Description_Notes
VPN_Form_Status
HubID (data type is Number)
The table that I’m appending the records to is called "tbl_Hub_Info" and contains the following columns:
HubID (primary key)
HubName
Hub City
Hub_Zip_Code
Hub_Latitude
Hub_Longitude
VPN_Form_Status
Site_Description_Notes
PendingVPNFormID (data type is Number)
SQL for Append query:
INSERT INTO
tbl_Hub_Info ( [Hub Name], [Hub City], [Hub Zip Code], [Hub Latitude], [Hub Longitude], Notes )
SELECT [tbl_Pending VPN Forms].Hub_Name, [tbl_Pending VPN Forms].Hub_City, [tbl_Pending VPN Forms].Hub_Zip_Code, [tbl_Pending VPN Forms].Hub_Latitude, [tbl_Pending VPN Forms].Hub_Longitude, [tbl_Pending VPN Forms].Site_Description_Notes
FROM [tbl_Pending VPN Forms]
WHERE ((([tbl_Pending VPN Forms].[VPN Form Status])=1));
Any suggestions as to how to fix the duplicate records from being created every time the query is run?
Thanks in advance!