G
Guest
I need a message box to appear under certain conditions when a record is
opened on a form.
I can get it to work with just one condition, as follows - if the "Paid"
control is empty, then the message pops up nicely, using this:
Private Sub Form_Current()
If Nz(Me.Paid, "") = "" Then
MsgBox "Not paid yet!"
End If
End Sub
However I need to put another filter in there, as this message is only
required to pop up when the value in the ClientType control is Private, and
not if it is Trade or Commercial.
I tried putting in another line similar to the above and ending it with And,
but VB didn't like that.
Can somebody tell me exactly what is needed, please!
Many thanks
CW
opened on a form.
I can get it to work with just one condition, as follows - if the "Paid"
control is empty, then the message pops up nicely, using this:
Private Sub Form_Current()
If Nz(Me.Paid, "") = "" Then
MsgBox "Not paid yet!"
End If
End Sub
However I need to put another filter in there, as this message is only
required to pop up when the value in the ClientType control is Private, and
not if it is Trade or Commercial.
I tried putting in another line similar to the above and ending it with And,
but VB didn't like that.
Can somebody tell me exactly what is needed, please!
Many thanks
CW