L
Lauren B
I have my formed devised so that when a zip code is entered, the city,
state, and county are automatically populated. This is based on a query I
derived from a large table containing all US zip codes. My 'after update'
code for the Zip Code field reads as follows:
Private Sub ZipCode_AfterUpdate()
P_City = Me.ZipCode.Column(1)
P_State = Me.ZipCode.Column(2)
P_County = Me.ZipCode.Column(3)
End Sub
If I go into an existing record, this function works fine; however, if I
enter a new record, it does not. After entering a zip code in a new record,
the other fields remain blank. How can I get this to work on new form
entries?
Any assistance is appreciated.
LB
state, and county are automatically populated. This is based on a query I
derived from a large table containing all US zip codes. My 'after update'
code for the Zip Code field reads as follows:
Private Sub ZipCode_AfterUpdate()
P_City = Me.ZipCode.Column(1)
P_State = Me.ZipCode.Column(2)
P_County = Me.ZipCode.Column(3)
End Sub
If I go into an existing record, this function works fine; however, if I
enter a new record, it does not. After entering a zip code in a new record,
the other fields remain blank. How can I get this to work on new form
entries?
Any assistance is appreciated.
LB