T
Thomas Brendgen
Hello,
I have a Class Module in which I have defined a Recordset, which is filled
with data. Now I want to display this recordset in a DataGrid Control.
In Visual Basic 6.0 I have just written "Set DataGrid.DataSource = rec", if
rec is a Variable of the Class typ (e.g. Dim rec as NamesData) and if the
DataSource Behaviour of the Class Module is set to vbDataSource. But in VBA
in Excel I can set the DataSource Behaviour. So I get only a error message
about incompatible types, when I run it.
Can anyone tell me, what I must do, to fill in the rec Variable into the
Datagrid?
Thanks in advance
I have a Class Module in which I have defined a Recordset, which is filled
with data. Now I want to display this recordset in a DataGrid Control.
In Visual Basic 6.0 I have just written "Set DataGrid.DataSource = rec", if
rec is a Variable of the Class typ (e.g. Dim rec as NamesData) and if the
DataSource Behaviour of the Class Module is set to vbDataSource. But in VBA
in Excel I can set the DataSource Behaviour. So I get only a error message
about incompatible types, when I run it.
Can anyone tell me, what I must do, to fill in the rec Variable into the
Datagrid?
Thanks in advance