M
Mantok
I am running ACCESS 97 and can not set the require field
tag on this table. So I added code to check for required
fields on the click event of the Submit button. When I
run the form in debug mode, I can see the value of
cmbFirst in NULL. But when I tried checking "If cmbFirst
= NULL Then", it didn't trap it. So I tried the
following, but it doesn't trap them either.
Procedure cmdSubmit_click
If (cmbFirst < " " Or txtSecond < " " Or lstThird
< " ") Then
If cmbFirst < " " Then
lblFirst.ForeColor = 255
End If
If txtSecond < " " Then
lblSecond.ForeColor = 255
End If
If lstThird < " " Then
lblThird.ForeColor = 255
End If
MsgBox ("Required Fields not entered")
GoTo Exit_cmdSubmit_Click
End If
tag on this table. So I added code to check for required
fields on the click event of the Submit button. When I
run the form in debug mode, I can see the value of
cmbFirst in NULL. But when I tried checking "If cmbFirst
= NULL Then", it didn't trap it. So I tried the
following, but it doesn't trap them either.
Procedure cmdSubmit_click
If (cmbFirst < " " Or txtSecond < " " Or lstThird
< " ") Then
If cmbFirst < " " Then
lblFirst.ForeColor = 255
End If
If txtSecond < " " Then
lblSecond.ForeColor = 255
End If
If lstThird < " " Then
lblThird.ForeColor = 255
End If
MsgBox ("Required Fields not entered")
GoTo Exit_cmdSubmit_Click
End If