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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datareport-ado 1

Status
Not open for further replies.

briggsy79

Programmer
Feb 23, 2001
68
SE
is there anyway i can put a single record/row on to a datareport, the one the cursor is at on a different form?
Thanks
 
You can filter the recordset so that it has a single record and base the report on that. Try this:

Code:
' oRS is your original recordset, nRS will be a copy
' The current record in oRS will be reported:

Dim nRS as RecordSet
Dim b as Variant

b = oRS.Bookmark
Set nRS = oRS.Clone
nRS.Filter = Array(b)

' Now you can run your report with the nRS recordset

Hope this is helpful

Chaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top