A
Aniko
Hi,
I have a main form with an option group corresponding to
tab controls used for sub-forms.
In the main Form Event Procedure, I have the following code
to keep the tab corresponding to the option group selected,
after moving between records:
Private Sub Form_Current()
Me.AssetTypeTabCtl = Me.AssetTyepOptionGroup - 1
Me.AllowEdits = Me.NewRecord
End Sub
When I attempt to add a new record I get a
Run-time error '-2147352567 (80020009)':
The setting you entered isn't valid for this property.
End or Debug
When clicking on Debug, VBA points to the
Me.AssetTypeTabCtl = Me.AssetTyepOptionGroup - 1
line in the form's Event Procedure.
Could you please help me to solve this problem?
Thanks in advance,
Aniko
I have a main form with an option group corresponding to
tab controls used for sub-forms.
In the main Form Event Procedure, I have the following code
to keep the tab corresponding to the option group selected,
after moving between records:
Private Sub Form_Current()
Me.AssetTypeTabCtl = Me.AssetTyepOptionGroup - 1
Me.AllowEdits = Me.NewRecord
End Sub
When I attempt to add a new record I get a
Run-time error '-2147352567 (80020009)':
The setting you entered isn't valid for this property.
End or Debug
When clicking on Debug, VBA points to the
Me.AssetTypeTabCtl = Me.AssetTyepOptionGroup - 1
line in the form's Event Procedure.
Could you please help me to solve this problem?
Thanks in advance,
Aniko