Hi All,
I have a command button on a form which will save the data and open a second form, and pass a parameter to the second form.
Below is the code I tried:
Code:
Private Sub cmdSaveAndOpenNext_Click()
DoCmd.Close acForm, Me.Name
DoCmd.OpenForm "frm25-30-43FunctionalCheck-2", , , , , , Me.RepairID
End Sub
On the second form I have code like this:
Code:
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
Me.RepairID = Me.OpenArgs
Else: Me.RepairID = "Unknown"
End If
End Sub
The problem is that when I click the command button and there's a runtime error 2467, sorry for my poor english i'd better not translate the description....
Does anyone know what's wrong?
Thanks in advance.