Help with simple VBA code

lovett10

Registered User.
Local time
Today, 13:59
Joined
Dec 1, 2011
Messages
150
First of all i dont know hardly anything about access VBA so thanks in advanced for the help.

What i want is for when i press the button called "Generate Visit Number" in my form, i want it to create the next visit number in the table and place it in the text box "Text4" that is in the form thanks for the help in advanced.
:D
 
Do you know about the AutoNumber data type of a field?
 
I dont see how that is going to hell me im afraid :(... I want a button in the Form to create the next number in the sequence (starting at 15000) and place that number in a text box in the userform. Also place it in a table so that when i save the information on the form it creates a table with the visit number as the key.

Aorry if im being unclear and thanks in advance
 
Why do you think the AutoNumber field doesn't meet your needs?
 
The AutoNumber field automatically increments and you can start it off from a certain number if you wish. Are you beginning to see how this will work for you?
 
The AutoNumber field automatically increments and you can start it off from a certain number if you wish. Are you beginning to see how this will work for you?

no not at all im afraid :(
 

Users who are viewing this thread

Back
Top Bottom