|
-
Jan 21st, 2002, 12:21 AM
#1
Thread Starter
New Member
dbgrid
i have some problem loading record to the dbgrid. below is the part of the code
dim adocon as new adodb.connection
dim adors as new adodb.recordset
adocon.open ........ bla bla bla
adors.open "select * from something",adocon,, adOpenDynamic, adLockOptimistic, -1
set dbgrid1.recordsource = adors
but this code give me error that i don't understand...
please advice and some solution
-
Jan 21st, 2002, 01:32 PM
#2
Lively Member
Hi jimmykwh,
What type of the dbGrid are you using. Is it the type that will use OLEBD. I am using the True DB Grids, and when I use ADO, the grid must be the OLEDB type instead of the regular one. Not to sure if this will help, but good luck.
-
Jan 25th, 2002, 09:23 AM
#3
Thread Starter
New Member
thanks jim but can you tell me how to find or load the oledb dbgrid up so i can used it....
-
Jan 25th, 2002, 11:16 AM
#4
It's in the component list as 'Microsoft DataGrid Control 6.0' It may have an (SP5) after that and then it'll have (OLEDB) at the end.
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
|