C
cmichaud
I am struggling with this code. I am trying to get it so if the field
is no it will tell the user, they will hit ok...then go and enter a
value
If IsNull(Me.YearID) Then
MsgBox("You must enter a year.", vbOKOnly) = vbOK
Else
DoCmd.OpenReport "rptClubAA", acViewPreview, , "[YearID] = " &
Me.YearID
End If
is no it will tell the user, they will hit ok...then go and enter a
value
If IsNull(Me.YearID) Then
MsgBox("You must enter a year.", vbOKOnly) = vbOK
Else
DoCmd.OpenReport "rptClubAA", acViewPreview, , "[YearID] = " &
Me.YearID
End If