M
Marcus Becker
I have created an unbound ADO-Recordset that i want to take as the
RecordSource (or Recordset) of a report:
Dim rst As New Recordset
With rst
.Fields.Append "Name", adVarChar, 255
.Fields.Append "Menge", adInteger
.Fields.Append "Nummer", adInteger
....etc
.Open
Filled with values:
.AddNew
!Nummer = intx
!Name = rstbest!Name
!Menge = 500
....etc.
.Update
and in the end:
DoCmd.OpenReport "rpt_ausgabe", acViewPreview
reports!rpt_ausgabe.recordset = rst
.Close
End With
which produces the error:
Run-time error '2593': This feature is not available in an MDB.
Does anybody know how to make this work? The knowlegde base isn't very
helpful.
Thanks
RecordSource (or Recordset) of a report:
Dim rst As New Recordset
With rst
.Fields.Append "Name", adVarChar, 255
.Fields.Append "Menge", adInteger
.Fields.Append "Nummer", adInteger
....etc
.Open
Filled with values:
.AddNew
!Nummer = intx
!Name = rstbest!Name
!Menge = 500
....etc.
.Update
and in the end:
DoCmd.OpenReport "rpt_ausgabe", acViewPreview
reports!rpt_ausgabe.recordset = rst
.Close
End With
which produces the error:
Run-time error '2593': This feature is not available in an MDB.
Does anybody know how to make this work? The knowlegde base isn't very
helpful.
Thanks