That didn't really answer my question; but if it's a true form/subform setup, did you have the correct fields in the Master/Child Linked Fields properties? If not, then I guess what you're asking is how to refresh the data. If so, you could try using the Requery command, maybe in the AfterUpdate event of the textbox on the main form."A" field is in subform, "B" field is in main form
Try:can you give me some code sample?
Me.Requery
Hi. Sorry to hear that. Unfortunately, I can't tell you why or what else to try since I have no idea what your database really looks like. You didn't tell us if the form is bound or if the subform is properly linked to the main form. I'm not even sure if you're expecting to see the data you entered on the main form to show up in the subform. Are you able to post a sample db?it not work use in subform field AfterUpdate event...
Thank you.I will prepare the sample file for you
Hi. I downloaded your sample file, but I'm getting an error because I don't have the same language pack installed as you. In any case, try using Me.Recalc in the button code instead of Me.Requery. Hope it helps...
Hi. To requery, you use Requery. To recalculate, you use Recalc. In the demo you posted for me, you don't have anything on the main form. They are all subforms. The two smaller subforms are read only, so I imagine you want to update those because you can only update the bigger subform. I created a test file and tried using Recalc, and it worked for me. Since I can't really use your demo file, I can't test it.Me.Recalc same no use!
I just only want to know, after update the subfom field, how to requery the main form field?
Hi. To do that, I was able to use Recalc. Try this demo and hopefully it will work for you.please check the pic
Hi. Either way, I still used Recalc. Check out the attached modified demo. You don't have to click the button, although I left it there.Sorry to make you confused...
I mean not use the button,
is the big subform field after update,
the two small subform can auto requery
Hi. You're welcome. But, did you download either of the demos? Just curious...Thank you very much!!