George Too
Registered User.
- Local time
- Today, 04:48
- Joined
- Aug 12, 2002
- Messages
- 198
Hello all,
I am moving records from one temp table to my main table using a SQL INSERT INTO statement. I got that part right. What I need help on is creating the criteria aspect of it. The query should look into the values of the main table and not import the record if it will be duplicated. Here is the stament:
"INSERT INTO tblMstrRollInfo( Reference, MasterRoll, Set_, Position )" & _
"SELECT RefNo, Field9, Field10, Field11 " & _
"FROM tblTemp; "
I need to check for duplication on Reference and MasterRoll.
Thanks for your imput,
George.
I am moving records from one temp table to my main table using a SQL INSERT INTO statement. I got that part right. What I need help on is creating the criteria aspect of it. The query should look into the values of the main table and not import the record if it will be duplicated. Here is the stament:
"INSERT INTO tblMstrRollInfo( Reference, MasterRoll, Set_, Position )" & _
"SELECT RefNo, Field9, Field10, Field11 " & _
"FROM tblTemp; "
I need to check for duplication on Reference and MasterRoll.
Thanks for your imput,
George.