Requery a subform from another form?

前端 未结 7 1251
迷失自我
迷失自我 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:42

    Just discovered that if the source table for a subform is updated using adodb, it takes a while until the requery can find the updated information.

    In my case, I was adding some records with 'dbconn.execute "sql" ' and wondered why the requery command in vba doesn't seem to work. When I was debugging, the requery worked. Added a 2-3 second wait in the code before requery just to test made a difference.

    But changing to 'currentdb.execute "sql" ' fixed the problem immediately.

提交回复
热议问题