Requery subform after entry on main form

L

lsgKelly

I have been reading all the posts in regards to this problem, and I still can
not get this to work. I have two forms, main form fGroup, which has gName,
gAddress, gCity, gState, gZip. The subform (sfCounty) has two fields, gID
and County. The two forms are linked by gID.

What I want is when the user changes the gZip, I would like the County to
auto populate. It works if I go from one record to the next, but I can't
seem to get it to auto-update in the after_update event on the gZip field.

Here is the code I am currently using:

Me.sfCounty.Form.Requery

And I put that in the After_Update event on the gZip field from the main form.

What am I doing wrong?

Thanks for your help.

Kelly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top