dbTalk Databases Forums  

filter and unbound field

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


Discuss filter and unbound field in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fishqqq@hotmail.com
 
Posts: n/a

Default filter and unbound field - 07-14-2010 , 03:11 PM






I have an unbound field on a continuous form that i would like to use
the "right click" filter features on. for some reason the fields that
are unbound are not able to be filtered like this. is there a way
around this problem?

tks

Reply With Quote
  #2  
Old   
Allen Browne
 
Posts: n/a

Default Re: filter and unbound field - 07-15-2010 , 02:45 AM






What would this filter mean?

If the control is unbound (i.e. ControlSource property is blank), it is a
value that is not related to any field, and so there is no field to filter.

If the control is bound to an expression, e.g.:
=[a] + [b]
you could create a query based on the table that feeds your form. In the
Field row in query design, enter the same expression. Set the form's
RecordSource to the name of this query. Change the Control Source of the
text box to the name of the new field. You now have a field that you can
filter on.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


<fishqqq (AT) hotmail (DOT) com> wrote

Quote:
I have an unbound field on a continuous form that i would like to use
the "right click" filter features on. for some reason the fields that
are unbound are not able to be filtered like this. is there a way
around this problem?

tks

Reply With Quote
  #3  
Old   
fishqqq@hotmail.com
 
Posts: n/a

Default Re: filter and unbound field - 07-15-2010 , 07:41 AM



On Jul 15, 3:45*am, "Allen Browne" <AllenBro... (AT) SeeSig (DOT) invalid> wrote:
Quote:
What would this filter mean?

If the control is unbound (i.e. ControlSource property is blank), it is a
value that is not related to any field, and so there is no field to filter.

If the control is bound to an expression, e.g.:
* * =[a] + [b]
you could create a query based on the table that feeds your form. In the
Field row in query design, enter the same expression. Set the form's
RecordSource to the name of this query. Change the Control Source of the
text box to the name of the new field. You now have a field that you can
filter on.

--
Allen Browne - Microsoft MVP. *Perth, Western Australia
Tips for Access users -http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

fish... (AT) hotmail (DOT) com> wrote in message

news:b82aef50-c94e-4fc4-89a5-cd863d7091b1 (AT) e5g2000yqn (DOT) googlegroups.com...

I have an unbound field on a continuous form that i would like to use
the "right click" filter features on. for some reason the fields that
are unbound are not able to be filtered like this. is there a way
around this problem?

tks
Thanks Allen that works perfectly!

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.