S
Skylar Andersen
I am still having problems with the following code:
Private Sub ChooseADoctor_Click()
On Error GoTo Err_ChooseADoctor_Click
'Open a subform containing all of the related shipping
addresses
Dim cs As Object
Set cs = Me.CustomerID
DoCmd.OpenForm "Subform ShipAddresses FrmNewOrders",
acFormDS, , CustomerID = cs
Exit_ChooseADoctor_Click:
Exit Sub
Err_ChooseADoctor_Click:
MsgBox Err.Description
Resume Exit_ChooseADoctor_Click
End Sub
When I choose a particular record by clicking a checkbox
in Form1, the "OnClick" event is supposed to use the
CustomerID field of Form1 and open all matching records
in Form2 where the CustomerID field of Form2 matches the
CustomerID field of Form1. When I run the code, I get the
following error: "Enter Parameter Value" for
Form1.CustomerID.
Any suggestions?
Thank you.
Private Sub ChooseADoctor_Click()
On Error GoTo Err_ChooseADoctor_Click
'Open a subform containing all of the related shipping
addresses
Dim cs As Object
Set cs = Me.CustomerID
DoCmd.OpenForm "Subform ShipAddresses FrmNewOrders",
acFormDS, , CustomerID = cs
Exit_ChooseADoctor_Click:
Exit Sub
Err_ChooseADoctor_Click:
MsgBox Err.Description
Resume Exit_ChooseADoctor_Click
End Sub
When I choose a particular record by clicking a checkbox
in Form1, the "OnClick" event is supposed to use the
CustomerID field of Form1 and open all matching records
in Form2 where the CustomerID field of Form2 matches the
CustomerID field of Form1. When I run the code, I get the
following error: "Enter Parameter Value" for
Form1.CustomerID.
Any suggestions?
Thank you.