Hi All!
I know this should be easy and I've searched the forums and FAQ to try different configurations, but I cannot get this to work on my Access 2003 form.
Please tell me what I'm doing wrong.
I'm trying to auto-check a check box based on a selection chosen in a combo box.
On my form, I have a combo box (cboCycle) that is based on a table (Cycle_tbl). My check box is (ARR_MCABOPT1).
The table (Cycle_tbl) is small and only consists of two columns (ID and cycle) and two records (ID "1" - cycle "60Hz", ID "2" - cycle "50Hz").
Properties of combo box cboCycle are:
Row Source = Cycle_tbl
Column Count = 2
Bound Column = 2
I placed this as an 'After Update" event on the combo box (cboCycle):
I've tried changing the cboCycle.Column to (1) and even (0).
I've tried changing the If statement to read Me.cboCycle.Column(2) <> "60Hz" and when that didn't work, again played with the column number.
Still no dice.
Help please!
- Turb
I know this should be easy and I've searched the forums and FAQ to try different configurations, but I cannot get this to work on my Access 2003 form.
Please tell me what I'm doing wrong.
I'm trying to auto-check a check box based on a selection chosen in a combo box.
On my form, I have a combo box (cboCycle) that is based on a table (Cycle_tbl). My check box is (ARR_MCABOPT1).
The table (Cycle_tbl) is small and only consists of two columns (ID and cycle) and two records (ID "1" - cycle "60Hz", ID "2" - cycle "50Hz").
Properties of combo box cboCycle are:
Row Source = Cycle_tbl
Column Count = 2
Bound Column = 2
I placed this as an 'After Update" event on the combo box (cboCycle):
Code:
Private Sub cboCycle_AfterUpdate()
If Me.cboCycle.Column(2) = "50Hz" Then
Me.ARR_MCABOPT1.Value = True
Else
'Do Nothing
End If
End Sub
I've tried changing the cboCycle.Column to (1) and even (0).
I've tried changing the If statement to read Me.cboCycle.Column(2) <> "60Hz" and when that didn't work, again played with the column number.
Still no dice.
Help please!
- Turb