Tuesday, November 30, 2021

 

Access vba - 2101 error when trying to set the page for a tabControl

I kept hitting 2101 error ("The setting you entered isn't valid for this property") when trying to move to a new page on a tabControl. The cause - I was trying to move to a page that was currently set to visible=false.

Solution - change the visibility first, eg:

Forms("coreAdmin").TabPages.Pages(3).Visible = True
Forms("coreAdmin").TabPages.Value = 3



Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?