halem2
Registered User.
- Local time
- Today, 13:22
- Joined
- Nov 8, 2006
- Messages
- 180
Good morning you all Access Elders:
running Access 2000.
I have a form with the following code (I found somewhere in the forum and modified it to fit my needs) in the BeforeUpdate event of a form
On Error GoTo Err
If Me.VeroDivisions_ID = "" Or IsNull(Me.VeroDivisions_ID) = True Then
MsgBox "Division can't be left blank"
DoCmd.SetWarnings False
Cancel = True
DoCmd.SetWarnings True
End If
Exit Sub
Err:
but it is not working. I'm trying to force the user to populate the field before moving to the next record.
Can anyone tell me what I'm doing wrong?
thanks.
running Access 2000.
I have a form with the following code (I found somewhere in the forum and modified it to fit my needs) in the BeforeUpdate event of a form
On Error GoTo Err
If Me.VeroDivisions_ID = "" Or IsNull(Me.VeroDivisions_ID) = True Then
MsgBox "Division can't be left blank"
DoCmd.SetWarnings False
Cancel = True
DoCmd.SetWarnings True
End If
Exit Sub
Err:
but it is not working. I'm trying to force the user to populate the field before moving to the next record.
Can anyone tell me what I'm doing wrong?
thanks.