I want to make a change to a subform based on the status of a combobox in the main form. Structure is like this:
main form: frmProductInfo
subform: frmProdLicenses
combobox on main form: cboPlatform.
The code is both on the Current event of the main form and the AfterUpdate event of the combobox:
The code is supposed to enable certain properties of elements in the subform. When I make a change, I get an error message:
This topic is cross-posted on the forum UtterAccess, but I didn't get any joy there...
main form: frmProductInfo
subform: frmProdLicenses
combobox on main form: cboPlatform.
The code is both on the Current event of the main form and the AfterUpdate event of the combobox:
Code:
Private Sub cboPlatform_AfterUpdate()
If Me.Platform.Column(1) = "LDV Classic" Then
[Forms]![frmProdLicenses]![RemoteWorkstation].Enabled = False
Else: [Forms]![frmProdLicenses]![RemoteWorkstation].Enabled = True
End If
End Sub
The form name is correct and the form visible. I don't know where I'm going wrong..."Access cannot find the referenced form "frmProdLicenses".
This topic is cross-posted on the forum UtterAccess, but I didn't get any joy there...