Foreign Keys

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top