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

create a recordset object from a forms recordset

Status
Not open for further replies.

clapper62

Programmer
Apr 17, 2003
113
0
0
US
I have a form with data I populated with a ADO recordset from SQL server
what I would like to do now is create a recordset object from the data in the form

something like this

Dim rst As New adodb.Recordset
Set rst = Me.Recordset
Set rst = Nothing

this code runs without error
but I dont think it really works
because when I try to do anything with the recordset
such as .sort or .recordcount I get an error

is it possible to do what I'm trying to do?
 
I tried several different cursorlocations while creating the recordset with no success
and I have spent more time on this than I wanted to so I think I will just create a new
connection to the server and create recordsets with SQL sorted the way I want it displayed

I'm sure you are facing me in the right direction and I thank you for your time and help
hopefully I can revisit this later
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top