I have a tab on a form disabled but what the forecolor to be black. Is there a way to do this without having to code a separate line for each object on the tab?
I've tried this but it doesn't work:
If DBEngine.Workspaces(0).Users(CurrentUser).Name = "Shop" Then
Me.Casting.Enabled = False
Me.Casting.ForeColor = vbBlack