Re: Stored procedure with in a Sub Report
- From: "Sylvain Lafontaine" <sylvain aei ca (fill the blanks, no spam please)>
- Date: Thu, 25 Oct 2007 12:03:27 -0400
Probably because ADP is trying to put a server filter on an EXEC statement
when the subreport is used as a subreport; not as a main report (as it is
when you try it independantly).
Remove the EXEC word and the paramaters that follow, set the RecordSource to
the name of the stored procedure, the Record Source Qualifier to dbo and use
only parameters for the SP of the subreport that are either present as
fields on the RecordSource or as bound controls (name) of the main report
(names and fields without the @ of the parameter(s)).
If I remember correctly, the Link Child and Master Fields are useless when a
stored procedure is used as the record source of a subreport (they are only
good when using a table or a view).
--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)
"ToniS" <ToniS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F6A44966-839A-4EEB-9A1B-50F5B216FEF8@xxxxxxxxxxxxxxxx
I tested the sub report with the Stored procedure and it works. As soon as
I
run the main report I get the following error: "Incorrect Syntax near the
keyword 'Exec' With in the subreport Recordsource I have the following
text
exec [GetRepGroups]. Any ideas on what I need to do?
Thanks
ToniS
.
- Prev by Date: Re: How do you convert an Access 2000 ADP to a Access 2007?
- Next by Date: Re: Stored procedure with in a Sub Report
- Previous by thread: Re: How do you convert an Access 2000 ADP to a Access 2007?
- Next by thread: Re: Stored procedure with in a Sub Report
- Index(es):
Relevant Pages
|
Loading