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!

SQL and Coldfusion - sql syntax for access 1

Status
Not open for further replies.

jenmerr

Programmer
Oct 5, 2007
15
IE
Hi
I am using Coldfusion with MS Access. The it's datasource is running on a setting called Access with Unicode.
The code that runs perfectly in MS Access will not run under the new setting MS Access with Unicode.

Here is an example

<CFQUERY NAME="getMenu3" DATASOURCE="#APPLICATION.DSN#">
SELECT * FROM SubNav1#SESSION.lang#
WHERE menuID = 3 AND isLive = 1
ORDER BY Priority</CFQUERY>

If i take out isLive = 1 the query works.

So i am wondering if there is some other way in writing the SQL syntax?

Thanks a million
 
Is the IsLive field based on a numeric data type (byte, long, integer etc)?

John
 
The Data Type is Yes/No in the access database
 
Use

IsLive = True

or

IsLive = False

then instead. Access treats 0 as False and anything other than 0 as true, but if you look at the ordinal value of True it is -1.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top