A
Anthony W
I have a form with a button that opens another form using
the following code:-
Private Sub LP_Info_Section_1_Button_Click()
On Error GoTo Err_LP_Info_Section_1_Button_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Learning Programme Information Form
Section 1 Revised"
stLinkCriteria = "[learn_id]='" & Me![LEARN_ID] & "'
And [Provi_id]='" & Me![PROVI_ID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_LP_Info_Section_1_Button_Click:
Exit Sub
Err_LP_Info_Section_1_Button_Click:
MsgBox Err.Description
Resume Exit_LP_Info_Section_1_Button_Click
End Sub
With more than one key, how would i go about using the
openargs argument?
Have looked at the help available and it doesn't make that
much sense to me.
Also with my other forms i have three and four keys, so
would this effect the argument as well.
Thanks in Advance
Anthony Webb
the following code:-
Private Sub LP_Info_Section_1_Button_Click()
On Error GoTo Err_LP_Info_Section_1_Button_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Learning Programme Information Form
Section 1 Revised"
stLinkCriteria = "[learn_id]='" & Me![LEARN_ID] & "'
And [Provi_id]='" & Me![PROVI_ID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_LP_Info_Section_1_Button_Click:
Exit Sub
Err_LP_Info_Section_1_Button_Click:
MsgBox Err.Description
Resume Exit_LP_Info_Section_1_Button_Click
End Sub
With more than one key, how would i go about using the
openargs argument?
Have looked at the help available and it doesn't make that
much sense to me.
Also with my other forms i have three and four keys, so
would this effect the argument as well.
Thanks in Advance
Anthony Webb