Hi
I have an unlinked form/subform (i.e. no master/child fields set up). Whenever I try to access any of the subform's resources from the main form in vb code I get an error
- checked the names of the subform and it's controls,
- compacted and repaired,
- deleted and re-added the subform,
- deleted the whole form and re-imported it from a backup DB
but not joy.
I refer to the subform as per the following:-
The "Set" works OK but all other calls to the subform's form fail as in the ColumnHidden command above?
Instinct tells me this is because I created the offending form by copying a similar Form/Subform (that was working OK) and I bet Access has got all it's resource's knickers in a twist!
Any ideas how to cure it please?
I have an unlinked form/subform (i.e. no master/child fields set up). Whenever I try to access any of the subform's resources from the main form in vb code I get an error
I have done all the usual:Error No: 2467 - Error Decription: The expression you entered refers to an object that is closed or doesn't exist.
- checked the names of the subform and it's controls,
- compacted and repaired,
- deleted and re-added the subform,
- deleted the whole form and re-imported it from a backup DB
but not joy.
I refer to the subform as per the following:-
Code:
Dim Cntrlbx As Control
Set Cntrlbx = Me.Form.Controls("My_Subform_Name")
Cntrlbx.Form.Controls("Cntcts_Unique_No_Added_By").ColumnHidden = True
Instinct tells me this is because I created the offending form by copying a similar Form/Subform (that was working OK) and I bet Access has got all it's resource's knickers in a twist!
Any ideas how to cure it please?