A
Aad v via AccessMonster.com
Hi Access Profs,
I create a report which has a stored procedure as control source.
To select the right record for the report, the ID of the active record in
'MY_FORM' is passed to the Input Parameter property.
( @REJ_ID int=Forms![MY_FORM]![REJ_ID] ) This works fine as long I refer to
'MY_FORM'.
I now want to use this as generic Report which can display the records of
similar forms.
(the forms are identical except that they have an different customer ID which
will be stored in the table.
In that way I can restrict the recordset to only those of a particular
customer)
So I think that the reference to the active Form has to be dynamic.
I can't figure out how to pass the current Form name to the Report Input
Parameter property.
Please help.
Very Thanks
Aad
I create a report which has a stored procedure as control source.
To select the right record for the report, the ID of the active record in
'MY_FORM' is passed to the Input Parameter property.
( @REJ_ID int=Forms![MY_FORM]![REJ_ID] ) This works fine as long I refer to
'MY_FORM'.
I now want to use this as generic Report which can display the records of
similar forms.
(the forms are identical except that they have an different customer ID which
will be stored in the table.
In that way I can restrict the recordset to only those of a particular
customer)
So I think that the reference to the active Form has to be dynamic.
I can't figure out how to pass the current Form name to the Report Input
Parameter property.
Please help.
Very Thanks
Aad