I have a textbox that has a persons age. Based on that value I want the form to modify the value in an unbound combobox on the same form. I am trying to refer to the value in the first (hidden) column of the combobox. I keep getting an error object required. Any help would be appreciated greatly!
Heres what I have.
If Me.PtAge.Value < 34 Then
Me.age.Column(0) = 1
ElseIf Me.PtAge.Value > 34 Then
Me.age.Column(0) = 2
ElseIf Me.PtAge.Value > 39 Then
Me.age.Column(0) = 3
ElseIf Me.PtAge.Value > 44 Then
Me.age.Column(0) = 4
ElseIf Me.PtAge.Value > 49 Then
Me.age.Column(0) = 5
ElseIf Me.PtAge.Value > 54 Then
Me.age.Column(0) = 6
ElseIf Me.PtAge.Value > 59 Then
Me.age.Column(0) = 7
ElseIf Me.PtAge.Value > 64 Then
Me.age.Column(0) = 8
ElseIf Me.PtAge.Value > 70 Then
Me.age.Column(0) = 9
End If
The "me.age...." is where the error is flagged.
Thanks Zorro
Heres what I have.
If Me.PtAge.Value < 34 Then
Me.age.Column(0) = 1
ElseIf Me.PtAge.Value > 34 Then
Me.age.Column(0) = 2
ElseIf Me.PtAge.Value > 39 Then
Me.age.Column(0) = 3
ElseIf Me.PtAge.Value > 44 Then
Me.age.Column(0) = 4
ElseIf Me.PtAge.Value > 49 Then
Me.age.Column(0) = 5
ElseIf Me.PtAge.Value > 54 Then
Me.age.Column(0) = 6
ElseIf Me.PtAge.Value > 59 Then
Me.age.Column(0) = 7
ElseIf Me.PtAge.Value > 64 Then
Me.age.Column(0) = 8
ElseIf Me.PtAge.Value > 70 Then
Me.age.Column(0) = 9
End If
The "me.age...." is where the error is flagged.
Thanks Zorro