I keep getting "Ilegal use of . ! or (" with the following code and can not figure it out:
If IsNull(Me.List32.Value) Then
MsgBox (" Hey!!! You forgot to Select a Report")
If Me.Text58.Value = "lvs" Then
Me.staff = "lvs"
ElseIf Me.Text58.Value = "kps" Then
Me.staff = "kps"
Else
stDocName = List32.Value
DoCmd.OpenReport stDocName, acPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
DoCmd.Close acForm, "App"
End If
Thanks
If IsNull(Me.List32.Value) Then
MsgBox (" Hey!!! You forgot to Select a Report")
If Me.Text58.Value = "lvs" Then
Me.staff = "lvs"
ElseIf Me.Text58.Value = "kps" Then
Me.staff = "kps"
Else
stDocName = List32.Value
DoCmd.OpenReport stDocName, acPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
DoCmd.Close acForm, "App"
End If
Thanks