P
Paul James
I need to increment the next available autonumber field in a table (named
"tblData") by 1 when a certain event occurs in my database. The table in
which that autonumber is located is not otherwise involved in the event.
But when the event takes place, I need to notch up the autonumber in that
table by exactly one integer. What's the best way to do this?
I realize that one way to do this would be to first add then immediately a
record from tblData. If that's the best way to do it, what would the VBA
code for that be?
(I'm doing this because I'm using the autonumber field in that table to set
ID numbers of certain records in the database, but occasionally the next
available ID number for those records is obtained through another process,
and that's when I need to reset the autonumber in tblData).
Thanks in advance.
Paul
"tblData") by 1 when a certain event occurs in my database. The table in
which that autonumber is located is not otherwise involved in the event.
But when the event takes place, I need to notch up the autonumber in that
table by exactly one integer. What's the best way to do this?
I realize that one way to do this would be to first add then immediately a
record from tblData. If that's the best way to do it, what would the VBA
code for that be?
(I'm doing this because I'm using the autonumber field in that table to set
ID numbers of certain records in the database, but occasionally the next
available ID number for those records is obtained through another process,
and that's when I need to reset the autonumber in tblData).
Thanks in advance.
Paul