In an earlier thread, someone suggested using this code to figure the Invoice #, instead of using Autonumber. My question is where does this code go?
Dim varID As Variant
With recordset
.MoveLast 'Moves to the last record
varID = ![ID] 'Gets the number first
varID = varID + 1 'Increment the no.
.AddNew 'Add a new record
![ID] = varID 'Add the new number to start of
record
End With
Thanks for your help.
lymi6977
Dim varID As Variant
With recordset
.MoveLast 'Moves to the last record
varID = ![ID] 'Gets the number first
varID = varID + 1 'Increment the no.
.AddNew 'Add a new record
![ID] = varID 'Add the new number to start of
record
End With
Thanks for your help.
lymi6977