Simple for the smart ones... Requering a form once I hit enter

I have a simple form that updates a table.  I have a look up to another table inside the form that looks up city and state.  So when my users type in the street address they tab to city pick from the drop down list and then that will fill in the state.  Works great the first time but if they change the city it does not requery  the state.  Even if I hit enter on the city field.  

I have tried on the form on got focus a me.refresh and me.requery and both times it errors out that me cannot find the object me.  

It works if I do a Shift + F9.  I have tired to put the me.requery on the event also in the field..

Help
cres1121Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PatHartmanCommented:
In the afterUpdate event of the City, set the state to null and requery the combo

Me.cboState = Null
Me.cboState.Requery
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cres1121Author Commented:
Okay you knew this was coming... Compile error:  method or data member not found.  Do I have to define it somewhere?
0
PatHartmanCommented:
You did change the code to use your own control names, right?
0
Acronis Data Cloud 7.8 Enhances Cyber Protection

A closer look at five essential enhancements that benefit end-users and help MSPs take their cloud data protection business further.

cres1121Author Commented:
Yes.. I did
0
cres1121Author Commented:
figured it out.. I had not been referring to the right column
0
PatHartmanCommented:
Glad you got it worked out.  Please don't forget to close the question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.