Criteria in a query

J

jon

Hi
In a query I am using the following code
=IIf([Forms]![Form1]![Frame14]=2,True,)
but what I need is if it is not = 2 then true or false can be present


Thanks

Jon
 
J

Jeanette Cunningham

jon,

=IIf([Forms]![Form1]![Frame14]=2,True,False)
If the above is the control source for a text box, it
will give true if frame14 = 2, and false if it doesn't in the textbox.

Do you want to set the row source for a combo?
Do you want to allow a user to type true or false in a textbox?
Are you trying to do something else?

Jeanette Cunningham
 
J

jon

Hi Jeanette
sorted
thanks

Jon

Jeanette Cunningham said:
jon,

=IIf([Forms]![Form1]![Frame14]=2,True,False)
If the above is the control source for a text box, it
will give true if frame14 = 2, and false if it doesn't in the textbox.

Do you want to set the row source for a combo?
Do you want to allow a user to type true or false in a textbox?
Are you trying to do something else?

Jeanette Cunningham


jon said:
Hi
In a query I am using the following code
=IIf([Forms]![Form1]![Frame14]=2,True,)
but what I need is if it is not = 2 then true or false can be present


Thanks

Jon
 
R

Rogerio Bourbon de Alvear

Roger Bourbon of Alvear

Welcome Princess

jon said:
Hi Jeanette
sorted
thanks

Jon

Jeanette Cunningham said:
jon,

=IIf([Forms]![Form1]![Frame14]=2,True,False)
If the above is the control source for a text box, it
will give true if frame14 = 2, and false if it doesn't in the textbox.

Do you want to set the row source for a combo?
Do you want to allow a user to type true or false in a textbox?
Are you trying to do something else?

Jeanette Cunningham


jon said:
Hi
In a query I am using the following code
=IIf([Forms]![Form1]![Frame14]=2,True,)
but what I need is if it is not = 2 then true or false can be present


Thanks

Jon
 

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