|
-
Nov 17th, 2000, 10:17 AM
#1
Thread Starter
Addicted Member
I am new with using the datagrid, and would like some instruction on how to use it. I would like to only use code to fill the datagrid. Any good examples out there?
Thanks,
smh
Normal is boring...
 smh 
-
Nov 17th, 2000, 11:55 AM
#2
Hyperactive Member
set objconn = createObject("ADODB.Connection")
objconn.open "driver={sql server};server=SQLSERVER;database=Logging;uid=administrator;Pwd=beer"
set mycommand = CreateObject("ADODB.Command")
Set mycommand.ActiveConnection = objconn
Set myrs = CreateObject("ADODB.Recordset")
mycommand.commandtext = "Select * from sometable"
myrs.open mycommand
set the datagrid.datasource = to myrs
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
|