I would like to use a form as a template so when I enter data and a commit button is used, the data entered is saved and then the form is cleared to zero and/or nulled. Is this possible? If so, how? This is what I have so far...
Private Sub Command172_Click()
'Add record to sub form
DoCmd.OpenQuery ("Query1", acViewNormal
Dim rst As Recordset
DoCmd.OpenQuery ("Query2", acViewNormal
DoCmd.OpenQuery ("Query3", acViewNormalDo
DoCmd.OpenForm "Form", acNormal
On Error GoTo Err_Command172_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Form"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command172_Click:
Exit Sub
Err_Command172_Click:
MsgBox Err.Description
Resume Exit_Command172_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
End Sub
Any advice would be greatly appreciated!!!
Thanks!
Private Sub Command172_Click()
'Add record to sub form
DoCmd.OpenQuery ("Query1", acViewNormal
Dim rst As Recordset
DoCmd.OpenQuery ("Query2", acViewNormal
DoCmd.OpenQuery ("Query3", acViewNormalDo
DoCmd.OpenForm "Form", acNormal
On Error GoTo Err_Command172_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Form"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command172_Click:
Exit Sub
Err_Command172_Click:
MsgBox Err.Description
Resume Exit_Command172_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
End Sub
Any advice would be greatly appreciated!!!
Thanks!