benkingery
Registered User.
- Local time
- Today, 12:28
- Joined
- Jul 15, 2008
- Messages
- 153
I'm trying to code some VB code on a form that will open a second form for reference. It gets a little complicated because the procedure will actually be placed on a control within a subform on the original form. Here is what I have:
Private Sub OS_Label_DblClick(Cancel As Integer)
DoCmd.OpenForm "TransactionView_OS", acNormal, , "OS_Child=Forms!Master_Parent_QBF!Master_Child subform_Master_Parent.Form!OS_Child", acFormReadOnly, acWindowNormal
End Sub
So I'm trying to open a form called TransactionView_OS using a control called OS_Label. The control OS_Label is located within a subform (Master_Child subform_Master_Parent) and that subform is located on a main form called Master_Parent_QBF.
The sub I have above is giving me an error message that states:
Syntax error (missing operator) in qury expression 'OS_Child=Forms!Master_Parent_QBF!Master_Child subform_Master_Parent.Form!OS_Child'
I am comfortable getting the form to open but when I used this WhereCondition to filter the results is when I'm obviously having the issue.
Can anyone offer some help?
Private Sub OS_Label_DblClick(Cancel As Integer)
DoCmd.OpenForm "TransactionView_OS", acNormal, , "OS_Child=Forms!Master_Parent_QBF!Master_Child subform_Master_Parent.Form!OS_Child", acFormReadOnly, acWindowNormal
End Sub
So I'm trying to open a form called TransactionView_OS using a control called OS_Label. The control OS_Label is located within a subform (Master_Child subform_Master_Parent) and that subform is located on a main form called Master_Parent_QBF.
The sub I have above is giving me an error message that states:
Syntax error (missing operator) in qury expression 'OS_Child=Forms!Master_Parent_QBF!Master_Child subform_Master_Parent.Form!OS_Child'
I am comfortable getting the form to open but when I used this WhereCondition to filter the results is when I'm obviously having the issue.
Can anyone offer some help?