dbTalk Databases Forums  

combo box filter

comp.databases.ms-access comp.databases.ms-access


Discuss combo box filter in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Paul
 
Posts: n/a

Default combo box filter - 01-13-2012 , 05:01 AM






I have a form which I want to filter based on a combo box (ComName),
which is linked to a table. I have 1000s of records, but want to
select a specific company name from my Combo Box (ComName) and only
show records for that company. Any help please.

Reply With Quote
  #2  
Old   
Patrick Finucane
 
Posts: n/a

Default Re: combo box filter - 01-13-2012 , 09:14 AM






On Jan 13, 5:01*am, Paul <burnsp... (AT) hotmail (DOT) co.uk> wrote:
Quote:
I have a form which I want to filter based on a combo box (ComName),
which is linked to a table. I have 1000s of records, but want to
select a specific company name from my Combo Box (ComName) and only
show records for that company. Any help please.
What is your issue? In the combo's afterupdate event you could do
something like
Dim strFilter as string
strFilter = "CompanyID = " & Me.ComboCompany
Me.Filter = strFilter
Me.FilterOn = (strFilter > "")

Or is it the act of scrolling thru a combobox with 1000s of records?
You could create a search form and use the search form instead of a
combo.

Reply With Quote
  #3  
Old   
Paul
 
Posts: n/a

Default Re: combo box filter - 01-13-2012 , 11:15 AM



On Jan 13, 3:14*pm, Patrick Finucane <patrickfinucan... (AT) gmail (DOT) com>
wrote:
Quote:
On Jan 13, 5:01*am, Paul <burnsp... (AT) hotmail (DOT) co.uk> wrote:

I have a form which I want to filter based on a combo box (ComName),
which is linked to a table. I have 1000s of records, but want to
select a specific company name from my Combo Box (ComName) and only
show records for that company. Any help please.

What is your issue? *In the combo's afterupdate event you could do
something like
* Dim strFilter as string
* strFilter = "CompanyID = " & Me.ComboCompany
* Me.Filter = strFilter
* Me.FilterOn = (strFilter > "")

Or is it the act of scrolling thru a combobox with 1000s of records?
You could create a search form and use the search form instead of a
combo.
Hi - Each record has the name of the Company in the field named
(Company), I want to insert an unbound Combo Box to allow users to
select a company name which will then filter the records and only show
records for the selected company.

I also have reports/search forms already setup but some of the users
want the filter otion to allow them to scroll throught records for the
select company

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.