S
SusanV
TIA all,
I'm just NOT getting the syntax here, maybe I'm just tired. I'm not even
sure how to explain it, so bear with me if this is a tad unclear - a long
running project has had a change request requiring a new status which, if
true, modifies what a user can enter for this particular record. OK let me
try to explain this:
I've got a main form, with a tab control. The tab control has, let's say
2 tabs with subforms (it has more but I'm only working with 2 of them). On
Tab1 is a subform with a checkbox. When a user checks the box I have a
confirmation dialog, if the user cancels the change, then the options in the
combobox come from a lookup table with values L4, L3, L2, and L1, and the
box is unlocked (which is the original setup prior to this new change
request, and currently the default for the subform on Tab 2). If they
confirm the change, then I need to set the value of a dropdown box on Tab2's
subform to "Mandated" and lock it. (I then have a crapload more code but
this is the piece I'm stuck on)
specifics:
Main form: frmPMOReportData (parent/childlink fields not related to
controls I'm modifying)
Tab1 Subform: subfrmRepInfo Control: chkMandated (default = false)
Tab2 Subform: subfrmPmPlan Control: cboLOM
In an hour of looking on the web and hit-or-miss let's-try-this, the closest
I've gotten was:
Me.Parent!subfrmpmplan.Form!cboLOM = "MANDATED" which produced run-time
error 2465 "can't find the field 'subfrmPmPlan' referred to in your
expression"
Please help before I lose my mind!
TIA!
SusanV
I'm just NOT getting the syntax here, maybe I'm just tired. I'm not even
sure how to explain it, so bear with me if this is a tad unclear - a long
running project has had a change request requiring a new status which, if
true, modifies what a user can enter for this particular record. OK let me
try to explain this:
I've got a main form, with a tab control. The tab control has, let's say
2 tabs with subforms (it has more but I'm only working with 2 of them). On
Tab1 is a subform with a checkbox. When a user checks the box I have a
confirmation dialog, if the user cancels the change, then the options in the
combobox come from a lookup table with values L4, L3, L2, and L1, and the
box is unlocked (which is the original setup prior to this new change
request, and currently the default for the subform on Tab 2). If they
confirm the change, then I need to set the value of a dropdown box on Tab2's
subform to "Mandated" and lock it. (I then have a crapload more code but
this is the piece I'm stuck on)
specifics:
Main form: frmPMOReportData (parent/childlink fields not related to
controls I'm modifying)
Tab1 Subform: subfrmRepInfo Control: chkMandated (default = false)
Tab2 Subform: subfrmPmPlan Control: cboLOM
In an hour of looking on the web and hit-or-miss let's-try-this, the closest
I've gotten was:
Me.Parent!subfrmpmplan.Form!cboLOM = "MANDATED" which produced run-time
error 2465 "can't find the field 'subfrmPmPlan' referred to in your
expression"
Please help before I lose my mind!
TIA!
SusanV