Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SELECT QUERY IN IIF STATEMENT

Status
Not open for further replies.

anithamg

Programmer
Nov 21, 2002
6
0
0
US
SELECT IIF((SELECT COUNT(*) FROM TBLITINS)>0,1,0)) FROM TBLHOTELS

DOESN'T WORK. CAN I'VE A QUERY IN IIF STATEMENT??

 
This statement, if it worked would either select the field 1 or the field 0 from the table. I doubt seriously that those values correspond to names of fields in your table.

What are you trying to do?

Jeremy =============
Jeremy Wallace
Designing, Developing, and Deploying Access Databases Since 1995

Take a look at the Developer's section of the site for some helpful fundamentals.
 
not only that, it would select the same 0 or 1 for every row in TBLHOTELS!

surely not what you really want, right?


rudy

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top