Two search fields

  • Thread starter Thread starter Pete Fairley
  • Start date Start date
P

Pete Fairley

how can I have 2 search fields on one page? I'm using DRW
but this only caters for one search field. I can add
another, but how do I write the code, or criteria, because
a visitor might enter data in both fields or just one?

Thanks in advance

PF
 
Yes, but I need to allow for the fact that one field has data and the other
does not. In the case where both fields are populated the SQL would be as
follows:

SELECT * FROM tblItem WHERE (fkCondition = '::Condition::' AND
FkItemCategory = '::Category::')

but what do I do if Condition is blank?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top