|
-
Jan 26th, 2009, 06:48 PM
#1
Thread Starter
Hyperactive Member
[2008] recordset question
i have a csv file. I read that csv in a recordset using the following code:
recordset = CreateObject("ADODB.Recordset")
recordset.Fields.append("F", 200, 255)
recordset.Fields.append("P", 200, 255)
recordset.open()
....
....
recordset.AddNew()
recordset("F") = arrText(0)
recordset("P") = arrText(1)
....
....
what i want is to create two other recordsets and put in there from the original recordset (query)
Dim rs = CreateObject("ADODB.recordset")
Dim Sql = "SELECT * FROM [table]"
rs.Open(Sql, csvrecordset)
MsgBox(rs.Recordcount)
rs.Close()
and then again with a different query to the third recordset.
i think it can be done this way. . but how can i define [table] in my original recordset?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|