Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Combo Form Filter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lez - 06 May 2008 12:18 GMT
Hi Guys,

I have a combo and text box on a form, the text box holds the value of the
combo on the 'after update' event.

I want the form data to filter by the text box value but cannot get the
filter to work.

I have used the 'build wizard' to target the text box (txtrefereID) and get
this path info:

Forms![frmReferals]![txtReferalID]

However, this does not filter the form data, can anyone help me with this?

Many thanks
Golfinray - 06 May 2008 13:32 GMT
Use a combo to hold your selections that you want the user to choose from on
the form. In the afterupdate event code put:
Me.Filter = "yourfieldname = """ & Me.Combo & """"
M.Filteron = True.
Use the combo wizard to select the field name for you and then plug in the
number of your combo box. This filter will work on almost any form.

> Hi Guys,
>
[quoted text clipped - 12 lines]
>
> Many thanks
Lez - 06 May 2008 17:35 GMT
Many thanks for the reply, however, I do not understand your reply? I can
already populate the txtbox with the value I want, I just need to filter the
form data now by the value of that field.

This is were my problem is, not getting the combo value, filtering the form
data with this value

Any other suggestions, appreciated.

> Use a combo to hold your selections that you want the user to choose from
> on
[quoted text clipped - 23 lines]
>>
>> Many thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.