M
Mark Kubicki
I have a form [sfrmCalledForm] that can be called from several different
control buttons on another form [frmMainForm].
Depending on what control was triggered, different controls on
[sfrmCalledForm] should either (be / or not be) enabled.
I'm trying this code, but fear i may be in the wrong approach:
this code is written behind the control's click event on frmMainForm
On Error GoTo Err_EditFixtureInfo_Click
Dim stDocName As String
stDocName = ...
Dim stLinkCriteria As String
stLinkCriteria = ...
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms!frmMainForm.Controls!cmdNewFixture.Enabled = False
...
any suggestions?
thanks in advance,
mark
control buttons on another form [frmMainForm].
Depending on what control was triggered, different controls on
[sfrmCalledForm] should either (be / or not be) enabled.
I'm trying this code, but fear i may be in the wrong approach:
this code is written behind the control's click event on frmMainForm
On Error GoTo Err_EditFixtureInfo_Click
Dim stDocName As String
stDocName = ...
Dim stLinkCriteria As String
stLinkCriteria = ...
DoCmd.OpenForm stDocName, , , stLinkCriteria
Forms!frmMainForm.Controls!cmdNewFixture.Enabled = False
...
any suggestions?
thanks in advance,
mark