I have a form PremRec. There are 2 fields, Policy# and CoName. I have this bit of code to auto fill the CoName when the Policy# is selected from the drop down on the form.
Private Sub Policy__AfterUpdate()
Dim GroupName As String
GroupName = [Forms]![PremRec]![Policy#].Column(1)
[Forms]!PremRec!CoName = GroupName
End Sub
Now I want to do the same After Update code for the CoName field, so when they choose a CoName from this field it autofills the Policy#. I can't figure out how to write this up. Can anyone help? Thanks for looking!
Private Sub Policy__AfterUpdate()
Dim GroupName As String
GroupName = [Forms]![PremRec]![Policy#].Column(1)
[Forms]!PremRec!CoName = GroupName
End Sub
Now I want to do the same After Update code for the CoName field, so when they choose a CoName from this field it autofills the Policy#. I can't figure out how to write this up. Can anyone help? Thanks for looking!