Re: ADP, Application Role, and objects
- From: "Vadim Rapp" <vr@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 10 Apr 2005 00:09:02 -0500
J> Scenario 3 - If I do NOT grant explicit permissions, but depend upon J> the Application Role, the form does not find the object when it opens. I J> get the following error: J> Run-Time error '2850': J> The record source '<source_name>' specified on this form or report J> does not exist.
I tried the following:
1. created table1 with permissions granted to userA
2. connected as UserA, created a form bound to table1.
3. created another form Form2 with OnOpen event running currentproject.connection.execute 'sp_setapprole 'RoleA','secretpass' . Saved the form.
4. revoked permissions on table1 from UserA; granted them to RoleA
5. tried to open form1, it failed (as expected).
5. opened Form2, then closed it
Then I opened Form1, and it showed the records in the table correctly.
Vadim
----------------------------------------
Vadim Rapp Consulting
SQL, Access, VB Solutions
847-685-9073
www.vadimrapp.com
.
- Follow-Ups:
- Re: ADP, Application Role, and objects
- From: Sylvain Lafontaine
- Re: ADP, Application Role, and objects
- References:
- ADP, Application Role, and objects
- From: JohnSmith
- ADP, Application Role, and objects
- Prev by Date: Re: scalar UDF question in Access ADP
- Next by Date: Re: ADP, Application Role, and objects
- Previous by thread: Re: ADP, Application Role, and objects
- Next by thread: Re: ADP, Application Role, and objects
- Index(es):
Relevant Pages
|