B
babs
Here is my code attached to the onclick event of a command button:
Private Sub Command12_Click()
On Error GoTo Err_Command12_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Jeff Employee Info with Sched"
DoCmd.OpenForm stDocName, , , "[man name]=" &
Me!JeffSchedLookAheadGenerate.Form!cbomanname
DoCmd.Maximize
Exit_Command12_Click:
Exit Sub
Err_Command12_Click:
MsgBox Err.Description
Resume Exit_Command12_Click
End Sub
I am trying to navigate to Jeff Employee info with Sched form
to the specific Man name that is presently active on the subform of the
present form the control name of the man name on the subform is cbomanname
and the subform name is JeffSchedLookAheadGenerate - I think I am missing
quotes - had some and got a different error - looked up syntax help - can't
figure it out.
thanks,
barb
Private Sub Command12_Click()
On Error GoTo Err_Command12_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Jeff Employee Info with Sched"
DoCmd.OpenForm stDocName, , , "[man name]=" &
Me!JeffSchedLookAheadGenerate.Form!cbomanname
DoCmd.Maximize
Exit_Command12_Click:
Exit Sub
Err_Command12_Click:
MsgBox Err.Description
Resume Exit_Command12_Click
End Sub
I am trying to navigate to Jeff Employee info with Sched form
to the specific Man name that is presently active on the subform of the
present form the control name of the man name on the subform is cbomanname
and the subform name is JeffSchedLookAheadGenerate - I think I am missing
quotes - had some and got a different error - looked up syntax help - can't
figure it out.
thanks,
barb