problem with sql statement

zambam

Registered User.
Local time
Today, 15:03
Joined
Mar 19, 2006
Messages
39
i have written this:

SELECT `Member ID`, Forename, Surname, `Paid?`, `Fine?`,
`Amount Due`
FROM `WHO HAVE NOT PAID`
WHERE (`Paid?` = 0) AND (`Fine?` = 1)

this is supposed to show people who have not yet paid, but it does not bring up anything in the search now. it used to work before...

whats wrong??
 
If 'Paid?' and 'Fine?' are boolean, would

'Paid?' = 0 and 'Fine?' = -1

work?
 
Are you writing this SQl in a module? Or the query designer?
 
If 'Paid?' and 'Fine?' are boolean, would

'Paid?' = 0 and 'Fine?' = -1

work?

WOHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO:D :D :D :D


I CAHNGED THE "1" TO "-1" AND IT WORKED!!!! THANK U SOOOOOOOOOOOOOOOOOO MUCH!!

(sry abt caps - im just so happy now!)

thanks again!!!!
 
Glad to help and thanks for letting me know it worked.
 

Users who are viewing this thread

Back
Top Bottom