S
subir.kumar
Hi,
I just migrated my database from Access to SQL server. I
need to know how to set the recordsource of a report to be
equal to a stored procedure with a parameter.
I have tried all of the following
1.
a. Create a ADODB.Command
b. Cmd1.CommandText = "MonthToDateReport"
c. Cmd1.CommandType = adCmdStoredProc
d. Cmd1.Parameters(1).Value = "Test"
e. rptReport.RecordSource = cmd1. execute
2. rptReport.recordsource = "Exec MonthtoDateReport "
& "Test"
They both give me error, please advice me as to how set
the recorsource so that it executes the report using the
stored procedure.
Thanks,
Regards,
Subir
I just migrated my database from Access to SQL server. I
need to know how to set the recordsource of a report to be
equal to a stored procedure with a parameter.
I have tried all of the following
1.
a. Create a ADODB.Command
b. Cmd1.CommandText = "MonthToDateReport"
c. Cmd1.CommandType = adCmdStoredProc
d. Cmd1.Parameters(1).Value = "Test"
e. rptReport.RecordSource = cmd1. execute
2. rptReport.recordsource = "Exec MonthtoDateReport "
& "Test"
They both give me error, please advice me as to how set
the recorsource so that it executes the report using the
stored procedure.
Thanks,
Regards,
Subir