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.

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.