hi, if i have 3 fields which use as search keys to find database's data in form,
say field 1 for company name , field2 for company code, and company registration no.
how can i make 3 fields which is flexible enough to detect what to search,
for example , if user keyin only company code , then the search function will baseon search criteria company code ,
if however, user keyin company name and company code, then search will based on two criteria.
and last question, the sql query to let user say keyin only a character like "A" in company code , then it will return all company code with "A" character include in whole company code from database
i have use following query in
java code as follow but it give unnecessary return data
comcode, comname and comregno is variable that user have keyin in form's search field.
thank you very much for guidance
