CK1,
I ran a test against a form I have with a subform of multiple phone
numbers. I copied that subform to another tab. When I tried to filter one
subform for "Fax" numbers, and the other for "Work" numbers... it failed.
Both subforms took on the last entered criteria.
My mistake... I have to change my response. You'll need 25 individual
subforms in order to be able to filter each one differently.
Using my example values, you'll need a subform (ex. frmAreaA) to handle
"A" Areas, and another form (frmAreaB) to handle the "B" Areas... etc for
all 25 subforms.
Place your cursor in the RecordSource for the Form. (ex. frmAreaA)
Click the three dot (...) button on the right, and enter the criteria
for that particular subform in the query grid.
[Curriculum Area] = "A"
Repeat that for all 25 forms.
Now that's a bit clumsy, but... it will work.
Another suggestion: (one of many ways to do it)
I would create 1 subform (frmCurriculumAreas), that displays ALL records
for ALL Areas. With a combo box (cboAllPossibleAreas) in the header
section, all possible Area values will display, and after selecting a value
(say "B"), and using the combo's AfterUpdate event, you would filter the
subform for only Area "B" records.
If you then selected "H" from the combo, you would remove the "B" filter
and apply an "H" filter... etc...etc
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html
"Find a job that you love... and you'll never work a day in your life."
CK1 said:
thanks Al
thats right, at the moment I have one long form (formStatements) with 600
entries, so I want to subdivide the form into 25 CurriculumAreas, each
Area
on a separate tab. Each tab should display the identical
datasheet/controls
but with the data filtered for the relevant Area.
At present, I've dragged the same datasheet (form) to each tab but I've
looked in the tab/subform Properties and cannot find somewhere to specify
criteria. I can drag a query to each tab which would allow me to stipulate
criteria but surely this would mean saving 25 separate queries?
Is this correct?
Thanks again
CK
Al said:
CK,
If I understand correctly... you want 25 subforms, each on it's own
tab,
and each displaying records associated with a particular CurriculumArea?
You don't indicate what the Curriculum Area values are, so I'll use
"A",
"B", "C"... etc as example values.
Each subform's query will have to be filtered.
For example,
tabA's subform will have a criteria of
CurriculumArea = "A"
tabB's subform will have a criteria of
CurriculumArea = "B"
etc.. for all 25 tabs/subforms
That's using the same subform on 25 tabs... with each subform filtered
for a CurriculumArea.
Hi
2nd Question of the day for me, very grateful for any help.
[quoted text clipped - 14 lines]