Hi all
Is it possible to link and command button to a tab?
example is rather than the user reaching the end of the form and going back to change to tab two, they can simply press a next button and the 2nd tab is displayed on screen?
Thanks
CD
Hi all
Is it possible to link and command button to a tab?
example is rather than the user reaching the end of the form and going back to change to tab two, they can simply press a next button and the 2nd tab is displayed on screen?
Thanks
CD
I would use the name of the tab page instead of number since the order might possibly change at some point. So you should be able to use
Me.TabPageNameHere.SetFocus
or you can set the value for the main tab control like:
Code:Me.TabControlNamehere = Me.TabControlNameHere.Pages("PageNameHere").PageIndex
Last edited by boblarson; 07-14-2011 at 03:20 PM. Reason: forum software inserting space where it should not be, so added code tags to avoid that.
Hi Bob
Thanks for the reply, it did the jobSometimes I think i'm never gonna remember all these different commands.
If i may, could i ask another question?
I have form that shows as follows:
Day Time On Time Off Total Hours
It is a simple monitoring tool (want to measure carbon footprint) but what i want is where the times are the same all week, they can click a button and it copies to the rest of the days.
Again my thanks
CD