G
Guest
hello all,
I know it's something stupid I'm overlooking somewhere...
I have a main form frm_PBT with many text fields and comboboxes on it.
If a record comes up with cmbGroup,cmbCompany,cmbYear or cmbPeriod already
populated I wanted those fields to be disabled...
Small sample:
Private Sub Form_Current()
If Me.cmbGroup.Value = True Then
Me.cmbGroup.Enabled = False
Else: Me.cmbGroup.Enabled = True
End If
End Sub
What I'm expecting to happen is when the form opens or the record changes
the field should be disabled.... am I wrong? Nothing happens.
Can someone help?
I know it's something stupid I'm overlooking somewhere...
I have a main form frm_PBT with many text fields and comboboxes on it.
If a record comes up with cmbGroup,cmbCompany,cmbYear or cmbPeriod already
populated I wanted those fields to be disabled...
Small sample:
Private Sub Form_Current()
If Me.cmbGroup.Value = True Then
Me.cmbGroup.Enabled = False
Else: Me.cmbGroup.Enabled = True
End If
End Sub
What I'm expecting to happen is when the form opens or the record changes
the field should be disabled.... am I wrong? Nothing happens.
Can someone help?