Tab Reference

wizcow

Registered User.
Local time
Today, 14:46
Joined
Sep 22, 2001
Messages
236
Hi,
I want to run a Requery on a list box that is on a Tab.
I have done sub forms before, but I can't seem to get this tab to work.

I tried
[forms]![form1]![Tab1]![ListBox]

but it doesn't work.

Tom
 
You don't need to reference the tab. All you need is to do this:

If the code is within the form itself:

Me!lstMyListBoxName.Requery

or if the code is outside of the form:

Forms!MyFormName!lstMyListBoxName.Requery


Controls within a Tab Control are not actually attached to the tab, but to the form that contains the Tab Control.
 

Users who are viewing this thread

Back
Top Bottom