E
EricG
I have a form whose underlying data comes primarily from "Table1" (for this
example). On the form is a drop-down box that displays a field named
"Primary OBS" for each record. "Primary OBS" is stored in "Table1". It is
an index into another table "Table2" which contains a field named "Team
Code". "Team Code" can look like "JD130000" or "JG320000", etc.
What I need to do is to filter the records in the form by the first two
letters of the "Team Code". In other words, the user can elect to filter by
"JD" and will get all the teams associated with that top-level code.
How can I do a filter in VBA using doCmd.ApplyFilter or some other method
that will perform this action? I can easily filter the index "Primary OBS"
itself, but how can I filter on what the index is pointing to in this other
table?
Thanks in advance,
Eric
example). On the form is a drop-down box that displays a field named
"Primary OBS" for each record. "Primary OBS" is stored in "Table1". It is
an index into another table "Table2" which contains a field named "Team
Code". "Team Code" can look like "JD130000" or "JG320000", etc.
What I need to do is to filter the records in the form by the first two
letters of the "Team Code". In other words, the user can elect to filter by
"JD" and will get all the teams associated with that top-level code.
How can I do a filter in VBA using doCmd.ApplyFilter or some other method
that will perform this action? I can easily filter the index "Primary OBS"
itself, but how can I filter on what the index is pointing to in this other
table?
Thanks in advance,
Eric