G
Guest
On form_1, I have a subform. I want to access form_2 using data from form1
and its subform. On the subform 'double_click() I coded:
Dim stLinkCriteria As String
stLinkCriteria = "([field_a] = """ & Me![field_a] & _
""") AND ([field_b] = """ & [form1].[field_b] & """)"
DoCmd.OpenForm stDocName, , , stLinkCriteria
The result is an error diolog:
Microsoft Office Access can't find the field '|' referred to in your
expression.
field_a and field_b are the 'keys' for form2. form_1 has field_b and its
subform (Me) has field_a.
How can I code the stLinkCriteria string?
Thanks in advance.
and its subform. On the subform 'double_click() I coded:
Dim stLinkCriteria As String
stLinkCriteria = "([field_a] = """ & Me![field_a] & _
""") AND ([field_b] = """ & [form1].[field_b] & """)"
DoCmd.OpenForm stDocName, , , stLinkCriteria
The result is an error diolog:
Microsoft Office Access can't find the field '|' referred to in your
expression.
field_a and field_b are the 'keys' for form2. form_1 has field_b and its
subform (Me) has field_a.
How can I code the stLinkCriteria string?
Thanks in advance.