PC Review


Reply
Thread Tools Rate Thread

Creating an expression

 
 
=?Utf-8?B?VGhvbWFzIFdvb2Y=?=
Guest
Posts: n/a
 
      30th Aug 2006
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

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      30th Aug 2006
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.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Thomas Woof" <(E-Mail Removed)> wrote in message
news:2083BFFE-6F73-4B0C-A00A-(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
ion ionescu
Guest
Posts: n/a
 
      3rd Sep 2006

"Thomas Woof" <(E-Mail Removed)> schrieb im Newsbeitrag
news:2083BFFE-6F73-4B0C-A00A-(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Expression Nirav Microsoft Access Forms 1 2nd Oct 2008 08:36 PM
Creating Expression Nirav Microsoft Access 1 2nd Oct 2008 07:33 PM
Creating Expression for Sum of two fields Nirav Microsoft Access Database Table Design 8 30th Sep 2008 07:22 PM
Creating Expression for Sum of two fields Nirav Microsoft Access Forms 4 30th Sep 2008 05:21 PM
Creating a regular expression =?Utf-8?B?QW50b25pbyBQcnVldHQtU2FyYXRhbiBJSQ==?= Microsoft Access Form Coding 5 2nd Mar 2007 03:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:46 PM.