reference a control on a form

F

Frank

I have a form with a tab control. The tab control has two
pages, with a list box on page2. How do i reference the
list box from another form so I can requery it?

I tried this but it didn't work:

Dim ctl as control

set ctl = Forms!Form1!tabMyTab!Page2!lstMyList
ctl.requery
 
A

Allen Browne

The tab control and its pages are not part of the reference. Just use:
set ctl = Forms!Form1!lstMyList
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top