SetValue Condition if Null

A

Ange Kappas

Hi,
I have a field on a form which is a combo box fill called ROOMNO but
I want it to return the STATUS field if it is empty to return empty if it is
filled with a room number to return the text PENDING.

I was thinking of attaching a Macro ON EXIT where it has a SetValue command
with a condition.

What is the best way to do it ?

Thanks
 
A

Ange Kappas

Hi Jeff,
Yes they are two different controls there is one control
named ROOMNO and another control named STATUS.
Everytime I enter a room number in the ROOMNO Control I want it to return
the text PENDING in the STATUS Control.

Thanks
 
S

Steve Schapel

Ange,

If you want to do it based on your original idea, the macro would be
like this:

Condition: [ROOMNO] Is Null
Action: SetValue
Item: [STATUS]
Expression: Null
Condition: [ROOMNO] Is Not Null
Action: SetValue
Item: [STATUS]
Expression: "PENDING"
 

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

Top