Creating an expression

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI
I want to make an expression that is basically meaning that if the number in
the box is 0 then say that "The animal is no longer on the premisis".

Thanks
 
Where do you want this expression to appear?

To have a message box pop up, you could put code in the text box's
AfterUpdate event:

Private Sub MyTextBox_AfterUpdate()

If Me.MyTextBox = 0 Then
MsgBox "The animal is no longer on the premises"
End If

End Sub

If you're trying to populate another text box on the form, you can set the
text box's ControlSource to

=IIf([MyTextBox] = 0, "The animal is no longer on the premises.", "")

If you're looking for something else, post back with more details.
 
Thomas Woof said:
HI
I want to make an expression that is basically meaning that if the number
in
the box is 0 then say that "The animal is no longer on the premisis".

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top