Use a textbox to requery a bound listbox

jeffmoseler

Well-known Member
Joined
Jul 16, 2004
Messages
540
I have a bound Parent form with a Bound Listbox that navigates the form to a certain record.

I would like to be able to filter the Listbox with a "search" text box to make it easier to find the records I need to update with the child subforms.

I thought it would look something like this:

SELECT tblLeads.DotNo, tblLeads.LegalName
FROM tblLeads
WHERE (((tblLeads.LegalName) Like "*Forms!frmContactHistory!Text26*"))
ORDER BY tblLeads.LegalName;

But I think I am running into an issue because the form and the listbox are bound to fields in the table. Is there a creative way around this or do I have to unbind the form and listbox?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
A listbox can be bound but have a recordsource that isn't the same as the underlying table/query. It's just the value of the listbox (selected value) that is the "bound" value, not the entire list of records displayed.

I don't use search boxes a lot - Access has a lot of built-in filter features that I find extremely powerful without having to do anything special at all.
This might help (but it's all I know about to suggest):
http://www.allenbrowne.com/ser-03.html
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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