Computing.Net > Forums > Programming > Make data grid display SQL

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Make data grid display SQL

Reply to Message Icon

Name: RugZ
Date: August 2, 2004 at 08:34:33 Pacific
OS: Win2k
CPU/Ram: 1.7/256
Comment:

I would like to use an SQL select statement that is Opened by Recordset Object of the DAO family and Display the results on a DataGrid.....How do i do this
The code am using is as follows

Dim dbSales as Database
Dim rsSalesDetails as Recordset

set dbSales=OpenDatabase("C:\Sales\Sales.mdb")
strSQL="SELECT * FROM SalesDetails"
set rsSalesDetails=dbSales.OpenRecordset(strSQL)

But how to make the recordset display on my DataGrid is the problem. Help!




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Make data grid display SQL

data grid program www.computing.net/answers/programming/data-grid-program/14540.html

Create a Data warehouse in SQL Server 2K www.computing.net/answers/programming/create-a-data-warehouse-in-sql-server-2k/2725.html

data grid in vb6 www.computing.net/answers/programming/data-grid-in-vb6/17827.html