NickyThorne
New member
- Local time
- Today, 05:29
- Joined
- Nov 22, 2008
- Messages
- 4
Hello,
What i need to do:
For the value in my primary key field to increase by 1 when a new record is started.
Currently, when a new record is started, i have to manually enter the "Card Number" each time (Which is +1 than the previous record). I need vb code which can do this for me. (Please tell me where i place the code)
The Problem:
I can't use the Autonumber data type because i have some what 2000 records already in the table, and it wont allow me to change it which is why im asking for vb code.
img7.imageshack.us/img7/5351/proofgc0.png
In Summary:
Currently i have a form which uses a text field, linked to a primary key called "Card Number".
When i start a new record, i have to enter a card number eg, 1001239
(the previous records had the card numbers: 1001237, 1001238)
Can anyone give a code or solution as to how i achieve this?
Thank you in advance,
Nicky Thorne.
What i need to do:
For the value in my primary key field to increase by 1 when a new record is started.
Currently, when a new record is started, i have to manually enter the "Card Number" each time (Which is +1 than the previous record). I need vb code which can do this for me. (Please tell me where i place the code)
The Problem:
I can't use the Autonumber data type because i have some what 2000 records already in the table, and it wont allow me to change it which is why im asking for vb code.
img7.imageshack.us/img7/5351/proofgc0.png
In Summary:
Currently i have a form which uses a text field, linked to a primary key called "Card Number".
When i start a new record, i have to enter a card number eg, 1001239
(the previous records had the card numbers: 1001237, 1001238)
Can anyone give a code or solution as to how i achieve this?
Thank you in advance,
Nicky Thorne.