Figuring out which tab called the subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to have two different tabs that call the same form. However,
depending upon which tab called it, I want to use a different query and
default value in a certain field. How do I figure out which tab called the
subform?
 
Look at the Value of the tab control to see which page is active.

Example:
Select Case Me.[MyTab].Value
Case Me.[MyPage].PageIndex
MsgBox "Called by MyPage"
Cae Me.[SomeOtherPage].PageIndex
MsgBox "Called by SomeOtherPage"
End Select
 

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

Back
Top