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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try a criteria of,
Like [Forms]![Frontpage]![nat] & "*"
This should give you a partial match

HTH

Peter
 
Upvote 0

Forum statistics

Threads
1,223,560
Messages
6,173,030
Members
452,500
Latest member
jesuisazep

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