Btn to clear form?

jbphoenix

Registered User.
Local time
Today, 10:11
Joined
Jan 25, 2007
Messages
98
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
 
Thou you could get this to work....... It sounds like it would br VERY confusing for the user! Two open forms...One blank...one of a previous record..... What is the point of keeping the second form open while entering a new record?
 

Users who are viewing this thread

Back
Top Bottom