Can anyone look at this code and let me know how I can use it to pass more than two values to a form from another. this is what I have on form1
Code:
DoCmd.OpenForm "frm_safety_investigation", , , , , , Me![Incident_Number] & "," & Me![Employee_Involved_1]
and on form 2 on the load event i have this
Code:
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
Incident_Number = Left(Me.OpenArgs, InStr(Me.OpenArgs, ",") - 1)
Corrective_Action_Number = Left(Me.OpenArgs, InStr(Me.OpenArgs, ",") + 1)
end if
end sub
but I can't figure out to save my life how to make it pass more than just two fields with the openarg method.
any help would be appreciated.