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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with SQl syntax for select statement.

Status
Not open for further replies.

compucop

Technical User
Sep 24, 2002
107
US

Hi, I upsized my access database to a ADP, one of my reports does not recognize the below SQL statement. anybody know the correct syntax ? Thanks.

rs4.Open "SELECT * FROM TABLE WHERE TABLEID =" & INTTABLE & " AND TABLEYESNO = FALSE", cn4, adOpenStatic


 
Code:
 SELECT * 
 FROM TABLE 
 WHERE TABLEID =" & INTTABLE & "
   AND TABLEYESNO = FALSE
My first guess would be to check what datatype the upsizing wizard made column TABLEYESNO. And then verify that that datatype can contain values of "FALSE".

Chip H.
 
upsizing wizard changed format to yesno, but I changed it to true/false. I still get an error with the above statement. Thanks for your time Chip.
 
GOT IT... Use 0 for True and 1 for False, unbelievable huh.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top