I have a form with a tab control. I have a number of pages, each with one subform. On subform1 I have a button that when clicked runs a query and populates the form. It also runs a query that populates subform2 on another page. It then requeries subform1, so the users can see the information. My problem is that I cannot get subform2 to refresh, so the users can see the information when they click on the page. I have have to hit the F9 to see the information. Here is my code:
Dim stDocName As String
Dim stDocName2 As String
stDocName = "APPEND Lab-Eval"
stDocName2 = "APPEND Diag-Eval"
DoCmd.SetWarnings False
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.OpenQuery stDocName2, acNormal, acEdit
DoCmd.Requery
DoCmd.SetWarnings True
Thanks for your assistance!
Dim stDocName As String
Dim stDocName2 As String
stDocName = "APPEND Lab-Eval"
stDocName2 = "APPEND Diag-Eval"
DoCmd.SetWarnings False
DoCmd.OpenQuery stDocName, acNormal, acEdit
DoCmd.OpenQuery stDocName2, acNormal, acEdit
DoCmd.Requery
DoCmd.SetWarnings True
Thanks for your assistance!