I’m trying to control the locked property of a subform based on what security group the current user is a member of. I’m using ADO, not DAO, in this app, and I also have a reference set to the ADO Ext. 2.8 for DDL and Security. This is the first time I’ve ever used this set of objects, and I’m having trouble figuring out how to do this.
It seems like I should be able to iterate through the users of a specific group. And if CurrentUser matches one of the members, I can set the locked property of the subform.
Sounds good in theory – but can I do this?!!!
I know I can always hard code user names and compare CurrentUser directly, but I really don’t want to do it that way.
Has anyone successfully accessed security objects via code? Any help would be greatly appreciated!!!
Thanks!!