Message 1 of 1
DataGrid Control
Not applicable
02-11-2002
09:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to display a recordset in a DataGrid control here is my code
that doesn't work. I cannot find much documentation on the DataGrid
control.
Private Sub UserForm_Initialize()
Dim rstErrorSet As New ADODB.Recordset
rstErrorSet.Open "[tblErrorLog]", cnniBomDB, adOpenStatic
DataGrid1.ColumnHeaders = True
Set DataGrid1.DataSource = rstErrorSet.DataSource
End Sub
that doesn't work. I cannot find much documentation on the DataGrid
control.
Private Sub UserForm_Initialize()
Dim rstErrorSet As New ADODB.Recordset
rstErrorSet.Open "[tblErrorLog]", cnniBomDB, adOpenStatic
DataGrid1.ColumnHeaders = True
Set DataGrid1.DataSource = rstErrorSet.DataSource
End Sub