|
-
Nov 21st, 2000, 03:05 AM
#1
Thread Starter
New Member
Please help
What wrong with this code
I got error "the rowset is not bookmarkable"
Private Sub Form_Load()
Dim cn As new ADODB.Connection
cn.Open "DSN=mydsn"
Dim rs As New ADODB.Recordset
rs.ActiveConnection = cn
rs.Source = "select * from authors where [year born]>1943"
rs.Open
Set DataGrid1.DataSource = rs
rs.Close
cn.Close
Set rs = Nothing
Set cn = Nothing
End Sub
-
Nov 21st, 2000, 06:00 AM
#2
Lively Member
on what line did you get the error?
 Just trying to muddle through...
-
Nov 21st, 2000, 06:50 AM
#3
Lively Member
Specify type to open
You must specify how to open the recordset....
static usually works best in grids
like:
rs.open SomeString, cn, adOpenStatic
/Patrick
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
|