Is there a way to code a btn to clear a form so the user can add another record? Currently my btn opens another form and takes the CustNum and RMANumber from the form with the btn. So can I have the same btn open a new form and also clear the currently open form so the user can enter another record?
Here is the code for the btn -
Private Sub Command332_Click()
On Error GoTo Err_Command332_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "New_form6"
DoCmd.OpenForm "New_form6", , , , , , "SendValues"
Exit_Command332_Click:
Exit Sub
Err_Command332_Click:
MsgBox Err.Description
Resume Exit_Command332_Click
Here is the code for the btn -
Private Sub Command332_Click()
On Error GoTo Err_Command332_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "New_form6"
DoCmd.OpenForm "New_form6", , , , , , "SendValues"
Exit_Command332_Click:
Exit Sub
Err_Command332_Click:
MsgBox Err.Description
Resume Exit_Command332_Click