Wildcard Filter for a Form

Moxioron

Active Member
Joined
Mar 17, 2008
Messages
436
Office Version
  1. 2019
Hello.

I have a combo box form that I am using in a query. It works great, except I want it to return all results if the combo box is left blank.

The criteria in the query for Associate Name reflects:
[Forms]![frm_Associate Name (Summary Report)]![Combo1]


I have tried Like [Forms]![frm_Associate Name (Summary Report)]![Combo1]&"*"

To no avail...

Any words of wisdom? Thanks.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
It should be:

[Forms]![frm_Associate Name (Summary Report)]![Combo1] or [Forms]![frm_Associate Name (Summary Report)]![Combo1] Is Null

 
Upvote 0
Just remember that if you go into a combo and select the value and hit your backspace or delete key it doesn't make it null. It just has an empty string. So, you may need to change to this:

[Forms]![frm_Associate Name (Summary Report)]![Combo1] or Len([Forms]![frm_Associate Name (Summary Report)]![Combo1] & "") = 0
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top