By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,550 Members | 2,757 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,550 IT Pros & Developers. It's quick & easy.

Determing Current Page (Tab) on an Access Form

P: 27
I have 4 different pages (Tabs) on a form filled with different data. I have a 'Save" button for the whole form. When I click on the save button I want to be able to do different funcitons based on which Tab is on top. What VBA code do I use to determine what Tab is on top.
May 14 '08 #1
Share this Question
Share on Google+
2 Replies

P: 52
I would use a Select Case statement with the argument as the tab control's current value.

Expand|Select|Wrap|Line Numbers
  1. Select Case Me.TabControlNameHere.Value
  2. Case 0 
  3.   Do stuff for first tab.
  5. Case 1 
  6.   Do stuff for second tab.
  8. 'However many you need...
  10. End Select
May 14 '08 #2

P: 27
Thank you so much, it worked great.
May 15 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.