Forums

This topic is locked

SQL and Radio Buttons

Posted 27 Aug 2002 22:33:50
1
has voted
27 Aug 2002 22:33:50 Wil Turrin posted:
Hi, I'm trying to set up a search page that will compare a date and return values either on, after or before the date requested.

I tried something like :

Select *
From Table1
where (varButton='on' and pubDate = #varpubDate#) or (varButton='after' and pubDate > #varpubDate#) or (varButton = 'before' and pubDate < #varpubDate#)

but that just returns everything. Any thoughts? PLEASE PLEASE PLEASE help!

W

Reply to this topic