Link to home
Start Free TrialLog in
Avatar of llegaspi
llegaspiFlag for United States of America

asked on

Enabling and disabling controls on switchboard form

First question is how do I create a switchboard without usingt the wizard ? if I have a switchboard and how do I disable buttons based
on users workgroup?
Avatar of Plamodo
Plamodo
Flag of Canada image

You can create a form and use it as a switchboard.  Then on that form, you can enable and disable buttons with :

cmdGo.enabled = true
cmdGo.enabled = false

SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of llegaspi

ASKER

But how do I disable buttons based on user's login
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Routinet,

Where do I put this code? i have no clue.

Thanks,
Lourdes
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To get to the OnLoad event for the form, open the form in design mode... move your mouse to the box in the upperleft corner of the window and right-click ... select 'Build Event' and choose "code builder" .. this will automatically place you in the OnLoad event of the form.