Overflow

Programming

Registered User.
Local time
Today, 10:53
Joined
Jul 5, 2018
Messages
20
the second if statement in the following code gives me and overflow error.

If Me.NumberOfVacancy.Value <> 0 Then
If Nz(Me.StudentID, "") Or Nz(Me.EmployerID, "") = "" Then
MsgBox ("You MUST choose a student and an employer")
GoTo Endcode
End If

What does that mean? and how to avoid it?
 
should change to:

If Nz(Me.StudentID, "") = "" Or Nz(Me.EmployerID, "") = "" Then
 

Users who are viewing this thread

Back
Top Bottom