bopo
01-10-2008, 06:21 AM
Hi
Basically I have a combo box which has a row source to one particular column within a table, I wrote one line of VBA behind the combo box, but it just doesnt work, its so simple and I had no idea why :doh:
Private Sub Combo97_AfterUpdate()
If Combo97.Value = "Single" Then
AccommodationSelected.Value = "Family"
Else
AccommodationSelected.Value = "Noob"
End If
End Sub
Heres the things I have checked
Correct combo box name
Code within the correct event/sub routine
'Single' is spelt correctly in the code and within the record source
The receving text box is splet correctly (know this as noob appears each time I test)If anyone has any other suggestions I would appreciate them :thumb
Basically I have a combo box which has a row source to one particular column within a table, I wrote one line of VBA behind the combo box, but it just doesnt work, its so simple and I had no idea why :doh:
Private Sub Combo97_AfterUpdate()
If Combo97.Value = "Single" Then
AccommodationSelected.Value = "Family"
Else
AccommodationSelected.Value = "Noob"
End If
End Sub
Heres the things I have checked
Correct combo box name
Code within the correct event/sub routine
'Single' is spelt correctly in the code and within the record source
The receving text box is splet correctly (know this as noob appears each time I test)If anyone has any other suggestions I would appreciate them :thumb