query to filter on MID(textbox) entered in form

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.
.



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)
  • Re: query to filter on MID(textbox) entered in form
    ... I also have a combo box that comes from a query. ... from multiple locations where some of the items have same number ... 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)
  • Count and display different services
    ... I have created a form based on a query. ... of times the clerk provided each service. ... The query asks for the clerks name, store ID, and the beginning and ... The results display the each service name and the count of each ...
    (microsoft.public.access.forms)
  • Count and display different services
    ... I have created a form based on a query. ... of times the clerk provided each service. ... The query asks for the clerks name, store ID, and the beginning and ... The results display the each service name and the count of each ...
    (microsoft.public.access.queries)