G
Guest
Hello, I have been using the following bit of code to open forms in my
database:
DoCmd.OpenForm "fCycComments", , , , acAdd (where 'fCycComments' is the name
of a specific form in the database).
For some of my forms, however, the data entry person might need to enter
multiple records using the form they are currently on. How can I adjust the
above code to: 1) save the record they have just entered, and 2) open a blank
form so they can enter a new record?
I'll need to put this code behind a Command Button on multiple forms, so I
was hoping for something a bit more 'generic' (instead of having to
specifically name the form I want to open), so I can just copy and paste this
Command Button onto whichever form I need to without having to tweak the code
each time to name a specific form.
Thanks.
database:
DoCmd.OpenForm "fCycComments", , , , acAdd (where 'fCycComments' is the name
of a specific form in the database).
For some of my forms, however, the data entry person might need to enter
multiple records using the form they are currently on. How can I adjust the
above code to: 1) save the record they have just entered, and 2) open a blank
form so they can enter a new record?
I'll need to put this code behind a Command Button on multiple forms, so I
was hoping for something a bit more 'generic' (instead of having to
specifically name the form I want to open), so I can just copy and paste this
Command Button onto whichever form I need to without having to tweak the code
each time to name a specific form.
Thanks.