S
Stapes
Hi
I am trying to append records into a table that has its first field as
an Autonumber field. The system is meant to generate the next unique
number.
This is the SQL: -
INSERT INTO TM_CampaignCustomers ( RunID, FK_Contact, Spend, Books,
DT_Audit, NUM_Invoice )
SELECT tempCampaignCustomers.RunID, tempCampaignCustomers.FK_Contact,
tempCampaignCustomers.Spend, tempCampaignCustomers.Books,
tempCampaignCustomers.DT_Audit, tempCampaignCustomers.NUM_Invoice
FROM tempCampaignCustomers;
It does not metion the AutoNumber field, TM_CCID, and generates an
error - hasn't added any records because of key violations. I guess it
is trying to stuff the RunID in the unmentioned field.
Is there a way round this?
Stapes
I am trying to append records into a table that has its first field as
an Autonumber field. The system is meant to generate the next unique
number.
This is the SQL: -
INSERT INTO TM_CampaignCustomers ( RunID, FK_Contact, Spend, Books,
DT_Audit, NUM_Invoice )
SELECT tempCampaignCustomers.RunID, tempCampaignCustomers.FK_Contact,
tempCampaignCustomers.Spend, tempCampaignCustomers.Books,
tempCampaignCustomers.DT_Audit, tempCampaignCustomers.NUM_Invoice
FROM tempCampaignCustomers;
It does not metion the AutoNumber field, TM_CCID, and generates an
error - hasn't added any records because of key violations. I guess it
is trying to stuff the RunID in the unmentioned field.
Is there a way round this?
Stapes