|
-
April 14th, 2001, 04:40 PM
#1
listview/datagrid
Hi how do i populate a datagrid control or a list view control with records from an access database? the book i am using is not covering it, is there a site out there that can help??
-
April 14th, 2001, 06:33 PM
#2
Re: listview/datagrid
DAO Method
Dim N As Integer
Dim DB As Database
Dim RS As Recordset
Set DB = OpenDatabase("DatabaseName")
Set RS = DB.OpenRecordset("TableName",dbWhatever)
Do Until RS.EOF
N = N + 1
ListView1.ListItems.Add N,,RS![FieldName]
ListView1.ListItems(N).SubItems(1) =
RS![FieldName]
(Add More subItems if needed)
RS.MoveNext
Loop
-
April 15th, 2001, 01:52 PM
#3
Re: listview/datagrid
thank u for that snippet ))
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
|