Hide in List box if field is No

J

jeremy0028

Hi I have the following in a list box called list0 on a form called
frmInsuranceSearch. Toward the bottom you will see a field called
qryInsuranceSearch.Active which contains a yes or no value. If yes
will show in list box if no will hide in the listbox.

SELECT qryInsuranceSearch.InsuranceName,
qryInsuranceSearch.InsuranceAddress1,
qryInsuranceSearch.InsuranceAddress2,
qryInsuranceSearch.InsuranceCity, qryInsuranceSearch.InsuranceState,
qryInsuranceSearch.InsuranceZip, qryInsuranceSearch.Active
FROM qryInsuranceSearch
ORDER BY qryInsuranceSearch.InsuranceName;


Any ideas.


Thanks in advance.
 

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

Top