I am surprised it runs at all. Missing End If lines and the first Else needs to be ElseIf.
Code:
If IsNull([BeginningOrderDate]) Or IsNull([EndingOrderDate]) Then
MsgBox "You must enter both beginning and ending dates."
DoCmd.GoToControl "BeginningOrderDate"
ElseIf [BeginningOrderDate] > [EndingOrderDate] Then
MsgBox "Ending date must be greater than Beginning date."
DoCmd.GoToControl "BeginningOrderDate"
Else
Me.Visible = False
If IsNull([BeginningOrderDate]) Or IsNull([EndingOrderDate]) Then
OrderEntrymsgbox = MsgBox("Preview Report Witn NO Date(s)?", vbInformation + vbYesNo, "ReportList")
End If
If (OrderEntrymsgbox = vbYes) Then
DoCmd.SetWarnings False
DoCmd.OpenReport Me.List2, acViewPreview
DoCmd.Close acForm, Me.Name
End If
End If
End Sub
I have never used GoToControl. If it doesn't work try SetFocus:
Me.BeginningOrderDate.SetFocus