add_record

maxmangion

AWF VIP
Local time
Today, 18:21
Joined
Feb 26, 2003
Messages
2,805
i have a button in a form and when i click on it, it will open another form. Actually is it possible that when i click the button and opens the form instead of displaying the first record, i would like the form to display an empty record so that i can enter a new record. is this possible pls ?

Thanks
 
Add this code underneath the code to open form
DoCmd.GoToRecord , , acLast

Regards

Louchey
 
Or, you can modify the open statement to:

Code:
DoCmd.OpenForm YourFormName, , , , acFormAdd

By adding the acFormAdd part, you will open the form in data entry mode and be able to add records.
 

Users who are viewing this thread

Back
Top Bottom