I have main form that used to enter new clients. I would like to be able to enter zip code in the CLZIP textbox and afterupdate, if the CLZIP matches the zip code from the T-103 table it would then populate an unbound textbox "txtemail" on the main form with the assigned email address for that zip code.
I have two tables:
T-099ClientTbl T-103EmailAddress
Fields CLZIP Zip
Email
Here is what I have so far and I am not sure I am going about this the right way. I have placed this code on the afterupdate of CLZIP field of the form and it does not seem to work.
If Me.Form.[CLZIP] = [T-103EmailAddress]![Zip] Then
Me.Form.[txtemail] = [T-103EmailAddress]!
Any help is appreciated.
I have two tables:
T-099ClientTbl T-103EmailAddress
Fields CLZIP Zip
Here is what I have so far and I am not sure I am going about this the right way. I have placed this code on the afterupdate of CLZIP field of the form and it does not seem to work.
If Me.Form.[CLZIP] = [T-103EmailAddress]![Zip] Then
Me.Form.[txtemail] = [T-103EmailAddress]!
Any help is appreciated.