G
Guest
Hi I am in the final stages of finishing a database. I have my forms 5 total
set up in a tab control. In three of the forms I have text boxes that I do a
look up from other forms (I use this as a reference tool so I don't have to
keep going back and forth between forms).
What I am trying to do is find out if I can refresh one form in the tab
control while in another form in the same tab control. I know this process
works when in the same form. I have a drop down box that I am make a
selection from and then I have an update query that runs on the click
procedure. Then the refresh code refreshes the text box on the form that
corresponds to the data in the table.
What I did was created a command button to refresh the document and then
moved the code to another procedure and when I select an item everything
updates. Here is the procedure with the code then I will present my question:
Private Sub Combo 59_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Set db=Current Db()
set qdf= db.QueryDefs("Update Region Query")
qdf.Execute dbFailOnError
Me.Combo59.Requery
End Sub.
The DoCmd line refreshes the entire form. My question is: Is there code that
I can add to the DoCmd line that will refresh the other forms in the Tab
Control? If there is can someone tell me where I would enter it and what the
code would be? (write it out for me please). There are actually only two
forms out of the five that I would like to be able to refresh by clicking
just one command.
Thanks for your help
Bill_De
set up in a tab control. In three of the forms I have text boxes that I do a
look up from other forms (I use this as a reference tool so I don't have to
keep going back and forth between forms).
What I am trying to do is find out if I can refresh one form in the tab
control while in another form in the same tab control. I know this process
works when in the same form. I have a drop down box that I am make a
selection from and then I have an update query that runs on the click
procedure. Then the refresh code refreshes the text box on the form that
corresponds to the data in the table.
What I did was created a command button to refresh the document and then
moved the code to another procedure and when I select an item everything
updates. Here is the procedure with the code then I will present my question:
Private Sub Combo 59_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Set db=Current Db()
set qdf= db.QueryDefs("Update Region Query")
qdf.Execute dbFailOnError
Me.Combo59.Requery
End Sub.
The DoCmd line refreshes the entire form. My question is: Is there code that
I can add to the DoCmd line that will refresh the other forms in the Tab
Control? If there is can someone tell me where I would enter it and what the
code would be? (write it out for me please). There are actually only two
forms out of the five that I would like to be able to refresh by clicking
just one command.
Thanks for your help
Bill_De