I know this question has already been asked, so I apologize for the duplication. But I tried using the answer from a previous post and couldn't get it to work.
I'm trying to populate a field called Region from a selection made in a combo box called County.
The County field combo box pulls its selections from a table called tblRegionList, which includes 3 columns: ID (the key field), Counties & Region. (The Region column contains the appropriate region for each county listed in the Counties column.)
When a user makes a selection from the County combo box, I would like the Region text box to be automatically updated with the correct region.
I created an "AfterUpdate" event procedure behind the County combo box, but I'm obviously missing something. Here's the event code:
Private Sub txtCounty_AfterUpdate()
Me!Region = Me!County.Column(2)
End Sub
When I update the County combo box, I receive the following run-time error:
Run-time error 438:
Object doesn't support this property or method.
Any help will be appreciated. Thank you.
KerryL
I'm trying to populate a field called Region from a selection made in a combo box called County.
The County field combo box pulls its selections from a table called tblRegionList, which includes 3 columns: ID (the key field), Counties & Region. (The Region column contains the appropriate region for each county listed in the Counties column.)
When a user makes a selection from the County combo box, I would like the Region text box to be automatically updated with the correct region.
I created an "AfterUpdate" event procedure behind the County combo box, but I'm obviously missing something. Here's the event code:
Private Sub txtCounty_AfterUpdate()
Me!Region = Me!County.Column(2)
End Sub
When I update the County combo box, I receive the following run-time error:
Run-time error 438:
Object doesn't support this property or method.
Any help will be appreciated. Thank you.
KerryL