If you only want to enter new records, open it in Data Entry mode.
Open the form in design view, and set its DataEntry property to Yes.
If you are opening it programatically:
DoCmd.OpenForm "MyForm", DataMode:=acFormAdd
If you want to open the form with all records, and go to a new one:
DoCmd.OpenForm "MyForm"
With Forms("MyForm")
If Not .NewRecord Then
.SetFocus
RunCommand acCmdRecordsGotoNew
End If
End With
You can open the form in DataEntry mode. This opens the form only exposing a new
blank record so users can make new entries. Existing entries can still be seen if
the user selects "Remove All Filters" from the main menu.
You can base the form on a query against your table with impossible criteria (like
1=0). It will open as above, but the user will not have any way to access previous
records.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.