A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Form Filter



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2008, 12:18 PM posted to microsoft.public.access.forms
Lez[_3_]
external usenet poster
 
Posts: 20
Default Combo Form Filter

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

  #2  
Old May 6th, 2008, 01:32 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Combo Form Filter

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.

"Lez" wrote:

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


  #3  
Old May 6th, 2008, 05:35 PM posted to microsoft.public.access.forms
Lez[_3_]
external usenet poster
 
Posts: 20
Default Combo Form Filter

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.


"Golfinray" wrote in message
...
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.

"Lez" wrote:

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



 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.