B
BMBerna
I am trying to create relationship between two forms. I have a button
which is suppose to look in a text box called "clients name" and bring
up information on another form which should match the clients name
with in textbox of "Parent of" on the other form. This is what I have
so far but it does not work.
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Parent"
stLinkCriteria = "[Parent Of]=" & Me![Client's Name]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command11_Click:
Exit Sub
The button gives me syntax error/ missing operator. Although, if i can
get it partially to work, I get a pop-up asking for clients name.
What am i doing wrong?
which is suppose to look in a text box called "clients name" and bring
up information on another form which should match the clients name
with in textbox of "Parent of" on the other form. This is what I have
so far but it does not work.
Private Sub Command11_Click()
On Error GoTo Err_Command11_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Parent"
stLinkCriteria = "[Parent Of]=" & Me![Client's Name]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Command11_Click:
Exit Sub
The button gives me syntax error/ missing operator. Although, if i can
get it partially to work, I get a pop-up asking for clients name.
What am i doing wrong?