HeY All wonder if you can shed some light on this one
I have a parent MDI form called MainApp
contained within this MainApp is a public function which simply gets passed an int ie 1,2,3,4 etc
then i have a case statment like
select case blah(ByVal MyValue)
case 1
Me.MasterBar.Buttons(0).Enabled = True
case 2
Me.MasterBar.Buttons(1).Enabled = False
etc
I am calling this function from a form called frmLogin like this
frmMainApp.DoLogin(IntUserPriv)
the frmMainApp is defined in a module as a public global variable
So basically my app opens the main MDI parent and that has onLoad event for frmLogin when user logs in all the checks and stuff is done in the frmLogin and if everything is cool the function doLogin is called with their user type passed in, i know the user type is being passed ok because stick a msgbox in there to test it however it will not set the buttons to either be enabled or disabled,,,, any ideas ????




Reply With Quote