I have 9 pages in a tab control.
I use this code for the Next page button: Me.TabCtl0.Value = (Me.TabCtl0.Value + 1) Mod 9
I use this code for the Previous page button: Me.TabCtl0.Value = (Me.TabCtl0.Value - 1) Mod 9
The Next page button works flawlessly in that, if I click the Next page button from Page 9, it automatically goes to Page 1. However, if I click the Previous page button from Page 1, I get this error: Run-time error 2101: The setting you entered isn't valid for this property.
Can somebody correct my mistake!
Thanks!