Bean Machine
Member
- Local time
- Today, 08:48
- Joined
- Feb 6, 2020
- Messages
- 102
Hi!
I have a form that searches my database for specific fields and returns what you have chosen from a combobox in the form of a query. I have been using this line of code and it has worked for almost everything and returned proper values: Like "*" & [Forms]![Database Search]![cbx_Item] & "*". This line of code is in the query portion and connects it to what is typed in the database search form. The only issue with this is the fact that null values will not function properly. There are certain fields that are suggested to be filled but not necessary and these are the fields that are causing me problems. Effectively I have a button tied to running a query and when clicked it is supposed to show you data associated with what you had input in the combobox (so if someone wants to search by name they can type in a name and run the query). I hope this is enough information. Thanks in advance for any help offered!
I have a form that searches my database for specific fields and returns what you have chosen from a combobox in the form of a query. I have been using this line of code and it has worked for almost everything and returned proper values: Like "*" & [Forms]![Database Search]![cbx_Item] & "*". This line of code is in the query portion and connects it to what is typed in the database search form. The only issue with this is the fact that null values will not function properly. There are certain fields that are suggested to be filled but not necessary and these are the fields that are causing me problems. Effectively I have a button tied to running a query and when clicked it is supposed to show you data associated with what you had input in the combobox (so if someone wants to search by name they can type in a name and run the query). I hope this is enough information. Thanks in advance for any help offered!