Button to open a blank form

ALAN

Registered User.
Local time
Today, 05:04
Joined
Jul 12, 2000
Messages
23
How to create a button to open a blank form?
 
If the form is bound to a table or query ... you can do this a couple of ways.

1) If the form is to be used specifically for "Data Entry" (not to view existing records), you can set the "Data Entry" property for the form to "Yes", the default is "No".

2) If the form is to be used for both viewing existing data and data entry, you can open the form in "Data Add" mode using the DoCmd.OpenForm method:

Private Sub YourButtonName_Click()
DoCmd.OpenForm "YourFormToOpenName", , , , acFormAdd
End Sub

(change "YourButtonName" and "YourFormToOpenName" to the names of your objects)

HTH
RDH
 

Users who are viewing this thread

Back
Top Bottom