Hi Guys
I hope this is the right forum to post this. I am using Access 2007, so have the Switchboard where the buttons are stored in a table. I want to hide buttons depending on the security level of the user.
I have the security level as a TempVar, but for the life of me I cannot figure out how to get the switchboard to hide menu buttons for certain levels.
E.G.
If [TempVars]![SecLevel] <3 then me.switchboard.itemNumber(4).visible=false
obviously that doesn't work though.
Can anyone please help?! I have been tearing my hair out, and searching fruitlessly for about an hour now!
many thanks
RiotSloth
I hope this is the right forum to post this. I am using Access 2007, so have the Switchboard where the buttons are stored in a table. I want to hide buttons depending on the security level of the user.
I have the security level as a TempVar, but for the life of me I cannot figure out how to get the switchboard to hide menu buttons for certain levels.
E.G.
If [TempVars]![SecLevel] <3 then me.switchboard.itemNumber(4).visible=false
obviously that doesn't work though.
Can anyone please help?! I have been tearing my hair out, and searching fruitlessly for about an hour now!

many thanks
RiotSloth