When you enter the values in a form, you are actually writing that data to the table under the form. What you then want is a new record in that same form.
The command, most easily written with the wiz, has a line of code that says:
DoCmd.GoToRecird,, ac New
That is the babe' that shows you a blank form with a new record.
I need a little more help. The form will be opened when the database opens. Secondly, on the new record command, how do I get the first field to be selected again?
what was your syntax error? it's helps us help you if you include error messages and code here in your posts.
ok then--
1) this will make the form open ready to add a new record:
in the form design mode, if the PROPERTIES window is not already visible, choose from the menu VIEW+PROPERTIES.
in the DATA ENTRY property, set it to YES.
2) you are changing your story. in your first post you wanted the form to 'clear' after saving, then you say you want to go to the first record after saving, now you want to go the 'first field'. so many different requests....if what you mean is you want to go to a new blank record, with the cursor in the first field.....in the design of the form, right-click in the black square in the upper-left-hand corner of the form (in design mode). right-click and choose TAB ORDER. set the tab order as you wish. put the field you want first, first in the list. when the form goes to a NEW record, that's the field it will go in to.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.