T
Tom Stoddard
I have a FE/BE that I've secured the way I want. Everything seems to be set
up correctly but I have one problem.
One form is a complex form with two subforms. It ran very slow over the LAN
so I had to remove the recordsource property from the subforms and then load
them back in using code in the main form's OnLoad event. That solved the
slowness but created a new problem. This form displays data which certain
user have read only permissions for which is set on the tables in the BE
database. For some reason, those users can't open the form without getting
an error stating the there's been an invalid reference made to the subform's
form/report property. After that, the form loads but it's blank. If I give
those users update, insert and delete permission to the tables that the
query I'm using as the recordsource is based on, then everything works fine.
Other users with those permissions can also use the form with no problem.
I've tried changing permissions on every object involved and the only thing
that makes a difference is the permission that the user has on the BE
tables. I've even made all queries snapshot type and set all forms
recordsettype properties to snapshot and it still won't let the user load
the form unless I grant them permission to change data in the tables. I even
tried to change the queries to RWOP and that didn't work. I've searched
online and found a few references to people who have reported similar
problems but I can't find an explanation. Can anyone explain this to me and
offer a work around? I don't want these users to have read write access to
these tables but I want them to be able to view the data.
In case it matters, the code I'm using the set this property is:
Me.mySubFormControl.Form.RecordSource = "qryMyQuery"
up correctly but I have one problem.
One form is a complex form with two subforms. It ran very slow over the LAN
so I had to remove the recordsource property from the subforms and then load
them back in using code in the main form's OnLoad event. That solved the
slowness but created a new problem. This form displays data which certain
user have read only permissions for which is set on the tables in the BE
database. For some reason, those users can't open the form without getting
an error stating the there's been an invalid reference made to the subform's
form/report property. After that, the form loads but it's blank. If I give
those users update, insert and delete permission to the tables that the
query I'm using as the recordsource is based on, then everything works fine.
Other users with those permissions can also use the form with no problem.
I've tried changing permissions on every object involved and the only thing
that makes a difference is the permission that the user has on the BE
tables. I've even made all queries snapshot type and set all forms
recordsettype properties to snapshot and it still won't let the user load
the form unless I grant them permission to change data in the tables. I even
tried to change the queries to RWOP and that didn't work. I've searched
online and found a few references to people who have reported similar
problems but I can't find an explanation. Can anyone explain this to me and
offer a work around? I don't want these users to have read write access to
these tables but I want them to be able to view the data.
In case it matters, the code I'm using the set this property is:
Me.mySubFormControl.Form.RecordSource = "qryMyQuery"