S
sike11 via AccessMonster.com
Hi people,
I need some help with the following. I have the following piece of code in my
code behind:
For i = 1 To 12
If q(i) <> "" And n(i) <> "" And g(i) <> "" Then
Call InsertFirstNew
Call InsertSecondNew(q(i), n(i), g(i))
ElseIf q(i) = "" And n(i) = "" And g(i) = "" Then
Else
MsgBox "Please check again!", vbExclamation
End If
Next i
I have noticed that when
q(i) = "" And n(i) = "" And g(i) = ""
the form does nothing. What I would like is an error message to tell the user
that they need to check their entry. I wouldlike this to happen so that the
message does not keep poping up after record.
Any ideas?
Please help.
Mary.
I need some help with the following. I have the following piece of code in my
code behind:
For i = 1 To 12
If q(i) <> "" And n(i) <> "" And g(i) <> "" Then
Call InsertFirstNew
Call InsertSecondNew(q(i), n(i), g(i))
ElseIf q(i) = "" And n(i) = "" And g(i) = "" Then
Else
MsgBox "Please check again!", vbExclamation
End If
Next i
I have noticed that when
q(i) = "" And n(i) = "" And g(i) = ""
the form does nothing. What I would like is an error message to tell the user
that they need to check their entry. I wouldlike this to happen so that the
message does not keep poping up after record.
Any ideas?
Please help.
Mary.