Requery a subform from another form?

前端 未结 7 1148
迷失自我
迷失自我 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条回答
  •  自闭症患者
    2021-02-02 18:46

    By closing and opening, the main form usually runs all related queries (including the subform related ones). I had a similar problem and resolved it by adding the following to Save Command button on click event.

    DoCmd.Close acForm, "formname", acSaveYes
    DoCmd.OpenForm "formname"
    

提交回复
热议问题