Forms![fmAEPtest]!sfmTab.form.[Goals].Locked = False
etc...
where are you executing it from? If you are in the code
behind, for instance, fmAEPtest, you can do this:
I'm executing behind another form (password form).
if you are NOT in the code behind the form, you may need
DoEvents
also, try removing the brackets
Tried those but ithey didn't help.
Crystal let me give you more insight as to where I'm coming from
(what's working) and where I'd like to go (what's currently not
working).
My working version has a Password form that opens the Main form
(fmAEP).
fmAEP has a Tab control with four Pages. Not knowing any better at the
time, I placed four separate subforms on each Page of the Tab control.
They all look the same and function the same, but have different names
for their controls.
fmAEP the parent, has Students as its recordsource.
Each subform (sfmTab09, 10, 11, 12) has its own recordsource, AEP09qry,
10qry, 11qry, and 12qry respectively. Parent/Child Link is on StudNum,
and the forms talk to each other perfectly.
=======================================
The version that I'm trying to get to work also has a Password form
that opens the Main form (fmAEPtest).
fmAEPtest has a Tab control with four Pages. This time I placed *one*
subform (sfmTab) on the Tab control, as I learned it would show through
on all four Pages.
fmAEPtest, the parent, has Students as its recordsource.
Subform sfmTab has AEPqry as its recordsource.
But because now that AEPqry is pulling up *all* records from AEP table,
a second qualifier is needed in the Parent/Child Link to select not
just student number, but also student grade.
But the Parent/Child recordsources are given to me to choose from.
So I chose what was most appropriate:
Link Child: StudNum, Grade
Link Master: StudNum, StudGrade
Not sure why, but now the form/subform are sort of talking to each
other.
The subform is no longer locked, BUT... instead of pulling up the
correct student, the FIRST student in the Students table is being
displayed in the subform, no matter which student logs in.
There is also a second problem. When I switch tab pages, the record
should be locked, but is now unlocked.
Would you have any ideas Crystal?
TIA Ric