isv_2004
Registered User.
- Local time
- Today, 10:33
- Joined
- Oct 19, 2004
- Messages
- 14

I have a Form “Shipping” with an AutoNumber TextBox [ICS_NO] that needs to be incremented by 1 on function NewRecord and cannot waste any numbers.
NOTE: (I am responsible for a block of 50 numbers assigned to me by Management of which I must utilize EVERY number, and cannot skip any numbers).
If the user decides to abort/cancel the new record, I have the Me.Undo command handle it in Form_BeforeUpdate; but the TextBox [ICS_NO] continues with the next number.
So I need to ReSeed the [ICS_NO] with the Query “Reseed_ICS”
SQL: for “Reseed_ICS” Query
ALTER TABLE Shipping ALTER COLUMN ICS_NO COUNTER(605914,1);
OK, now I need the above statement to set the COUNTER to the LAST number that TextBox [ICS_NO] has in From “Shipping”
How can I insert the Last [ICS_NO] value from my Form “Shipping” into the SQL statement of Query “Reseed_ICS” ??
As you can see, I am using the AutoNumber field for a specific purpose, I have been told not to do this due to MS Access problems handling the AutoNumber control.
If anyone knows of a better way to achieve my objective, please offer advice.
Thanks in advance