Requery a subform from another form?

前端 未结 7 1084
迷失自我
迷失自我 2021-02-02 18:02

I\'ve struggling with this problem on my own, then with some help, then search about it; but I haven\'t had any luck. So I decided to ask.

I have two forms in Access

7条回答
  •  梦毁少年i
    2021-02-02 19:05

    You must use the name of the subform control, not the name of the subform, though these are often the same:

     Forms![MainForm]![subform control name Name].Form.Requery
    

    Or, if you are on the main form:

     Me.[subform control name Name].Form.Requery
    

    More Info: http://www.mvps.org/access/forms/frm0031.htm

提交回复
热议问题