I'm creating a form that will look at records of properties and filter these records to match parameters chosen by the user. This is to help with market comps. For example, if I want all Medical Offices in Atlanta built in 2005, I select Atlanta under the City box, 2005 in the Year Built box, and Medical Offices under the Property Type box. I have made a simple form that does this. I used a query and typed
Is Null Or Like "*" & [Forms]![frm projects]![TxtCity] & "*"
in each box's Criteria section (changing the TxtCity to TxtYearBuilt, TxtPropertyTYpe, etc.)
I've also figured out how to create a list box on the form that allows the user to select more than one type of property. However, I can no longer run the query now. It will neither search what is selected from the listbox, nor will it search anything selected in the other boxes (i.c. city, year built, etc.)
Is there something I can write in the Property Type's query Criteria box. Or is there something to type in the coding section of the Run Query button?
Is Null Or Like "*" & [Forms]![frm projects]![TxtCity] & "*"
in each box's Criteria section (changing the TxtCity to TxtYearBuilt, TxtPropertyTYpe, etc.)
I've also figured out how to create a list box on the form that allows the user to select more than one type of property. However, I can no longer run the query now. It will neither search what is selected from the listbox, nor will it search anything selected in the other boxes (i.c. city, year built, etc.)
Is there something I can write in the Property Type's query Criteria box. Or is there something to type in the coding section of the Run Query button?