I am trying to disable a control on a subform via an event procedure from the main form in Access 2000 using:
Forms![Structure Data Input].[Costs Subform]![Feasability Contractor Works].Enabled = False
However, I get an error message 'Cannot disable a control while it has focus"
I have tried to set the focus to another field using code on the line before ...enable = false using both
DoCmd.GoToControl "GRIPStage1TotalCost"
or
Me![Costs subform].SetFocus
But I still get the error. Can anyone help?
MAny thanks,
Osx
Forms![Structure Data Input].[Costs Subform]![Feasability Contractor Works].Enabled = False
However, I get an error message 'Cannot disable a control while it has focus"
I have tried to set the focus to another field using code on the line before ...enable = false using both
DoCmd.GoToControl "GRIPStage1TotalCost"
or
Me![Costs subform].SetFocus
But I still get the error. Can anyone help?
MAny thanks,
Osx