Here is a portion of the SQL
WHERE (((bdd.dbaname) LIKE '%%%findname%%%') AND ((bdd.member) LIKE '%%%findmember%%%') AND ((bdd.tob) LIKE '%%%findtob%%%') AND ((bdd.phone) LIKE '%%%findphone%%%') AND ((bdd.fax) LIKE '%%%findfax%%%')
Now the problem is that if one of the database fields is empty, the search will skip that file. For instance is there is no text in the "bdd.fax" field, even if the query string is also empty, any files with a blank bdd.fax field will be left out of the results.
Is there a way to allow for blank fields, if the query string is blank?
WHERE (((bdd.dbaname) LIKE '%%%findname%%%') AND ((bdd.member) LIKE '%%%findmember%%%') AND ((bdd.tob) LIKE '%%%findtob%%%') AND ((bdd.phone) LIKE '%%%findphone%%%') AND ((bdd.fax) LIKE '%%%findfax%%%')
Now the problem is that if one of the database fields is empty, the search will skip that file. For instance is there is no text in the "bdd.fax" field, even if the query string is also empty, any files with a blank bdd.fax field will be left out of the results.
Is there a way to allow for blank fields, if the query string is blank?