Hi
Just wondering if anybody can shed some light on this for me.
I am trying to automatically append data to records with a specific field. I can get the qurie to work but when I run it there is an error which says that it can't append due to key violation. I have looked at the data type and it is just plain text so don't understand why it would give me such an error.
I have put in a composite key for the 2 fields which need to be appended to stop any duplicate entries, not sure if this might be causing the problem.
Here is the query:
INSERT INTO tblFundRepDetails ( TrackingID, [Action], Intls )
SELECT tblTracking.TrackingID, tblFundRepActs.Actions, [Auto] AS Initials
FROM tblTracking, tblFundRepActs
WHERE (((tblFundRepActs.Actions)="Attn") AND ((tblTracking.Notes)="No Attribution required"))
ORDER BY tblTracking.TrackingID
WITH OWNERACCESS OPTION;
Thanks in advance for any input.
Thanks
Regards
Mark
Just wondering if anybody can shed some light on this for me.
I am trying to automatically append data to records with a specific field. I can get the qurie to work but when I run it there is an error which says that it can't append due to key violation. I have looked at the data type and it is just plain text so don't understand why it would give me such an error.
I have put in a composite key for the 2 fields which need to be appended to stop any duplicate entries, not sure if this might be causing the problem.
Here is the query:
INSERT INTO tblFundRepDetails ( TrackingID, [Action], Intls )
SELECT tblTracking.TrackingID, tblFundRepActs.Actions, [Auto] AS Initials
FROM tblTracking, tblFundRepActs
WHERE (((tblFundRepActs.Actions)="Attn") AND ((tblTracking.Notes)="No Attribution required"))
ORDER BY tblTracking.TrackingID
WITH OWNERACCESS OPTION;
Thanks in advance for any input.
Thanks
Regards
Mark