Hi - I am running an audit of our database once a month and am trying to create a unique ID number for each participant. This audit looks for deceased people and returns 'hits'. So out of 95000 people, maybe 100 die. The next month, I need to send out the 94900 people from the previous audit, as well as all new participants.
Here's what I did: I created an AutoNumber field and then made the control number field (the date plus the autonumber). What I need is for each time I ran that macro, the AutoNumber resets to zero so the first person with the new control number would be, for instance, 20020315000001 and so on.
I have tried the Access help idea of creating a temp table and appending the number to my destination table. I named the one field in the temp table the same as my dest table and entered '0', ran the append query, and then the rest of the macro. The second entry in the destination table just picked up from 95000 rather than 0. ??? Did I do something wrong?
Thanks,
Susan
Here's what I did: I created an AutoNumber field and then made the control number field (the date plus the autonumber). What I need is for each time I ran that macro, the AutoNumber resets to zero so the first person with the new control number would be, for instance, 20020315000001 and so on.
I have tried the Access help idea of creating a temp table and appending the number to my destination table. I named the one field in the temp table the same as my dest table and entered '0', ran the append query, and then the rest of the macro. The second entry in the destination table just picked up from 95000 rather than 0. ??? Did I do something wrong?
Thanks,
Susan