Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing recordset to record source of report

Status
Not open for further replies.

magi

Programmer
Nov 20, 2001
13
US
I am using stored procedure's recordset as record source for the report(in Ms Access .adp), but could not preview the report.


here is my code

str2 = "Report1" ' report i created
DoCmd.OpenReport str2, acViewDesign
Set rpt1 = Reports("Report1")
rpt1.RecordSource = rs1.Source 'record set from sp
DoCmd.CLOSE , , acSaveYes



'Open report for viewing
DoCmd.OpenReport "Report1", acViewPreview 'Error this line
DoCmd.Echo True




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top