R
Richard
I'm using the below code. Access is stopping on -If CmdLn = "" Then- as if
there is a break point, but there is none. Pressing F5 the code continues
normally. How do I avoid the stopping?
Private Sub Form_Open(Cancel As Integer)
Dim CmdLn As String, cm
Application.SetOption "Confirm Action Queries", False
CmdLn = Command()
If CmdLn = "" Then
Exit Sub
Else
If CmdLn = "WkReport" Then
DoCmd.RunMacro "WkReport"
End If
End If
End Sub
there is a break point, but there is none. Pressing F5 the code continues
normally. How do I avoid the stopping?
Private Sub Form_Open(Cancel As Integer)
Dim CmdLn As String, cm
Application.SetOption "Confirm Action Queries", False
CmdLn = Command()
If CmdLn = "" Then
Exit Sub
Else
If CmdLn = "WkReport" Then
DoCmd.RunMacro "WkReport"
End If
End If
End Sub