Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to requery listbox on different tab

Status
Not open for further replies.

pduncan

IS-IT--Management
Jun 20, 2003
203
US
I have an ap that on one tab has a listbox based on a query of a table. On a different tab, I have a button to delete all records from the table. When I press the delete button and go back to the tab with the listbox, it still shows the old query. How do you reference controls on other tabs?

Thanks, PDUNCAN
 
The controls on a tab control all belong to the same form, so you can reference them as if they were on the same page:

Me.lstListBox.RowSource = ""

-Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top