i want to disable my menus and i have this code in my OK command in login:
IF staff.admin = .f. then
SET SKIP OF PAD maintenance OF _msysmenu .f.
SET SKIP OF PAD admin OF _msysmenu .f.
i have fields in my staff table of admin and have its type of logical..i want to disable my menus maintenance and admin when a non admin user is login..then it enables when admin user is login...when i run my program and login as a non admin user, the menus maintenance and admin won't disable. it remains enables..what is the problem here? it is in my code or in my table where my admin field is logical?
thanx for advance....