Home All Groups Group Topic Archive Search About

RWOP and passing variables to a function

Author
2 Jan 2009 2:30 PM
jaworski_m
Hello,
I have a table "MyTable" with the following fields:

tableID
valueA
valueB

and a query 'qryMyTable' (RWOP) which is used by a form - all above fields
included.

There is a calculated field on the form which uses a custom function
fMultiply("valueA","ValueB")
which returns a product.

How can I pass variables to the function if I remove all permissions from
"MyTable" (in order to use RWOP query)?

Thank you for suggestions.

Author
6 Jan 2009 12:53 PM
Arvin Meyer [MVP]
There should be no problem unless the user has no permissions on the form.
Show quoteHide quote
"jaworski_m" <jawors***@discussions.microsoft.com> wrote in message
news:D91C5FCF-9E59-478D-83F0-6B791A5FD599@microsoft.com...
> Hello,
> I have a table "MyTable" with the following fields:
>
> tableID
> valueA
> valueB
>
> and a query 'qryMyTable' (RWOP) which is used by a form - all above fields
> included.
>
> There is a calculated field on the form which uses a custom function
> fMultiply("valueA","ValueB")
> which returns a product.
>
> How can I pass variables to the function if I remove all permissions from
> "MyTable" (in order to use RWOP query)?
>
> Thank you for suggestions.
Are all your drivers up to date? click for free checkup

Author
23 Jan 2009 2:26 PM
jaworski_m
Thank you for the answer.

I'll describe the scenario.
A field on a form uses a function "fConcatChild" to concatenate values from
"many-side" table. "fConcatChild" description can be found here:

http://www.mvps.org/access/modules/mdl0004.htm

One of the parameters which is passed to the function is a table name. The
problem is that unless a user has a permission to read the table the text
field remains blank, because the function cannot read contents of underlaying
table.
I don't want to assign any permissions to tables but build forms on queries
with RWOP.

What is the work-around to read contents of the table used in "fConcatChild"
function?

Thank you hints.
Author
23 Jan 2009 7:33 PM
Joan Wild
You should be able to pass the name of a query instead of the table name.

Joan Wild
MS Access MVP

jaworski_m wrote:
Show quoteHide quote
> Thank you for the answer.
>
> I'll describe the scenario.
> A field on a form uses a function "fConcatChild" to concatenate values from
> "many-side" table. "fConcatChild" description can be found here:
>
> http://www.mvps.org/access/modules/mdl0004.htm
>
> One of the parameters which is passed to the function is a table name. The
> problem is that unless a user has a permission to read the table the text
> field remains blank, because the function cannot read contents of underlaying
> table.
> I don't want to assign any permissions to tables but build forms on queries
> with RWOP.
>
> What is the work-around to read contents of the table used in "fConcatChild"
> function?
>
> Thank you hints.

Bookmark and Share