I am trying to build an Employee Database for my company. I cant figure out whay this is not working. I want to Auto Populate the city and state based on the zip code entered. for txtEmployeeZip I have the following
Code:
Private Sub txtEmployeeZip_AfterUpdate()
txtEmployeeCity = DLookup("[zipCity]", "tblZip", "[zipCode]= '" & Me!txtEmployeeZip & "'")
txtEmployeeState = DLookup("[zipState]", "tblZip", "[zipCode]= '" & Me!txtEmployeeZip & "'")
End Sub
It however does NOTHING. I have double checked 10 times and all my field names are correct.
Thanks, Rab