|
-
Mar 12th, 2002, 10:48 PM
#1
Thread Starter
Hyperactive Member
DATAGRID Question
I have a form with a DataGrid ...
How can I fill it WITHOUT having to Use ADODC data controls or any other data control ...
I want to be able to create My own Connections..
and Recordset ... Like this...
Dim Conn as new ADODB.COnnection
Dim Rec as new ADODB.Recordset
Blablabla
Set DataGrid.SOMETHING = Rec
That Something is usually DataSource...
But it keeps giving me the following error "Recordset is not bookmarkable"
... I DONT GIVE A DAMN ABOUT IT BEEING BOOKMARKABLE OR NOT !!!
-
Mar 13th, 2002, 07:14 AM
#2
Hi
Try using a flexgrid or list box .....
You can fill either (flex seems better) with data from an ADODB connection 
Regards
Vince
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
-
Mar 19th, 2002, 10:32 AM
#3
New Member
Dim Cn As ADODB.Connection
Dim Rs As ADODB.Recordset
Dim conex As String
Set Cn = New ADODB.Connection
conex = "Provider=Microsoft.jet.oledb.3.51; Data Source =" & App.Path & "\" & "mydatabase.mdb"
Cn.ConnectionString = conex
'This avoids the error: The rowset is not bookmarkable
Cn.CursorLocation = adUseClient
Cng.Open
Set Rs = Cn.Execute("mytable")
Set DataGrid1.DataSource = Rs
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
|