In these circumstances it is not
AutoNumbering you need. It's explicit, controlled setting of the number instead.
We can help with this but could you first explain where
Transaction Code fits in? You gave a list of fields, then proceeded to explain your problem with reference to a field you hadn't included. This muddies the waters rather and I don't want to proceed with a fuzzy understanding of your problem as that way leads to problems and confusions.
This will work much better if you can post the meta-data (info about the layout / structure) of the table in the same way as I use in my example. Click on the Reply button and you will have access to all the codes I've used. PK & FK stand for Primary Key & Foreign Key respectively. Please don't use any TABs in your formatted layout as this will not display correctly - Spaces only for layout.
Table Name=[tblStudent] - Field Type IndexInfo
-
StudentID AutoNumber PK
-
Family String FK
-
SName String
-
University String FK
-
Mark Numeric
-
LastAttendance Date/Time