T
Tony Williams
I have a form called "frmprojects" on which is a combo box "cmbproject" and
a command button "cmdopen" I want to open a form "Time Cards 2" where the
value of "cmbproject" is equal to the value of "Projectname" on the subform
"Clientsubform" which is a subform of "Time card 2"
I have used this code but I get an error message that says "Syntax error"
Private Sub cmdOpen_Click()
Docmd.OpenForm ("Time cards 2",acNormal,,Forms![frmprojects].[cmbproject] =
Forms!["Time card 2"]![Client subform].Form![Projectname])
End Sub
Can anyone help me with the syntax here, I thought I'd followed the proper
convention.
Thanks
Tony
a command button "cmdopen" I want to open a form "Time Cards 2" where the
value of "cmbproject" is equal to the value of "Projectname" on the subform
"Clientsubform" which is a subform of "Time card 2"
I have used this code but I get an error message that says "Syntax error"
Private Sub cmdOpen_Click()
Docmd.OpenForm ("Time cards 2",acNormal,,Forms![frmprojects].[cmbproject] =
Forms!["Time card 2"]![Client subform].Form![Projectname])
End Sub
Can anyone help me with the syntax here, I thought I'd followed the proper
convention.
Thanks
Tony