requery listbox on tab

Corticus

New member
Local time
Today, 22:10
Joined
Aug 2, 2002
Messages
9
Hi,

How do I refer to a listbox on one tab of a tab control from an event on another tab.

I'll use these names:

FrmMain
TabMain

(on first tab)
Chk1
List1

(on second tab)
Chk2
List2

I want

Chk1_Click()
List2.requery

and

Chk2_Click()
List1.requery

Please help, my head hurts...

Thanks,
Corticus
 
Okay, I figured it out, 8 hours later :(

This works:

SFTab2 is the subform on tab 2

Chk1_Click()

Me.Parent.[SFTab2]![List2].Requery

End sub

peace,
Corticus
 

Users who are viewing this thread

Back
Top Bottom