DataGrid Control

DataGrid Control

Anonymous
Not applicable
194 Views
0 Replies
Message 1 of 1

DataGrid Control

Anonymous
Not applicable
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
0 Likes
195 Views
0 Replies
Replies (0)