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

I have a little problem editing TQu

Status
Not open for further replies.

jbpelletier

Programmer
Sep 8, 2001
232
CA
I have a little problem editing TQuery SQL property.

For Exemple if i whant to list all record from MyTable Where MyField is empty this work in Access (My Database is an Access one) but dont return any record if i use it in Delphi with the TQuery.SQL (active is true)

SELECT *
FROM MyTable T
WHERE T.MyField = NULL

i have also tryied '' and "" instea of NULL because MyField is a string, but still return no record.

any idea why it dont list any result..

by the way it give me the good result if i do :
SELECT *
FROM MyTable T
WHERE T.MyField <> NULL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top