filter data by using a textbox

Swifey

Active Member
Joined
Jan 16, 2003
Messages
421
A user wants to filter out customers details by keying in only part of the customers name.

Therefore I:-
1. Created a form called Frontpage with a text box called nat
2. Created a Query with the necessary fields
3. In the name field criteria I put - Like "[Forms]![Frontpage]![nat]"

I then asked the user to type in part of the customers name followed by an asterisk.
It brought back zero data but when I put Like”Ba*” in the criteria it returns data.

Can you please advice me as to where I have gone wrong.

Regards
Swifey
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try a criteria of,
Like [Forms]![Frontpage]![nat] & "*"
This should give you a partial match

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,221,574
Messages
6,160,602
Members
451,657
Latest member
Ang24

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