Re: query to filter on MID(textbox) entered in form

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Can you rewrite your question. Would like to help, but what you have written
does not make a lot of sense.

p-rat wrote:
I have a form and on the form a clerk enters Location such as ABC001.
I also have a combo box that comes from a query. This query has items
from multiple locations where some of the items have same number
(don't ask me why). I want to be able to have this query to be
filtered by MID(Location,1,1). So when they enter the location ABC001
the combo box drop down will only display the items filtered by this.

Right now in the query I have a field that pulls the MID function. On
this field I have criteria = [form]![myform]![textbox100].

The textbox on my is unbound and when visible will display the "A" in
the scenario above. However, when I tab to the combo box and try and
select then I get a display box that asks for [textbox100]. I type
this in and it filters correctly, but I don't want the display box to
show I want this to automatically filter by what the clerk enters in
the beginning.

Thanks.

--
DS

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200903/1

.



Relevant Pages

  • Re: Obtaining a filter from a form
    ... using the query grid. ... Access MVP 2002-2005, 2007-2008 ... After a user has implemented various filters on various fields on ... that the user has chosen to display. ...
    (microsoft.public.access.queries)
  • query to filter on MID(textbox) entered in form
    ... I have a form and on the form a clerk enters Location such as ABC001. ... I also have a combo box that comes from a query. ... the combo box drop down will only display the items filtered by this. ... this in and it filters correctly, but I don't want the display box to ...
    (microsoft.public.access.formscoding)
  • Re: Database Password - Enter by code.
    ... what would prevent me from writing a query with no filters ... to display one table at a time. ...
    (comp.databases.ms-access)
  • Filter for THIS WEEK only
    ... I would like to know how to make a query ... that filters to display on any given day, ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Re: Picture property for Access 2K forms
    ... and it works great...until you look at the database size involved. ... or by simply scaling down the image display in the ... > supported by those filters. ... To associate a graphic file with an OLE Server, ...
    (microsoft.public.access.devtoolkits)