Jon123
09-27-2009, 06:40 AM
I have a record ID field that is setup as an auto number. When the append query runs if the record ID is already used it wont update that record. I there away to fix this.
I know I can change the property Yes (No Duplicates) to Yes Duplicates OK but Im afriad that could cause more issues.
thanks
jon
Uncle Gizmo
09-27-2009, 07:16 AM
Don't add the new record ID, let Access generate a new number for you...
Jon123
09-27-2009, 07:34 AM
i thought about that but there is a problem with that. I didnt put everything in the orignal post. I'm running 2 append query's back to back to 2 different tables. 1 table captures raw data the other is collecting the dates and times. I need the record ID to match in the different tables. So What I was thinking is I need to look at the table get the ID number and then somehow add 1 to it.
Uncle Gizmo
09-27-2009, 07:47 AM
Assuming that your two tables have some information in common, then I would be inclined to make a query that joins them together and then extract your information from this query, not the tables separately.
Any hickups and you could have a right mess.
Jon123
09-27-2009, 12:24 PM
I cant combine the tables because then there would be to many fields.
gemma-the-husky
09-27-2009, 01:07 PM
to be honest it sounds like a normalisation probelm
you shouldnt need to add the same autonumber record id to to different tables - even if you need to do something like this, the pk of one should be an fk in the other