DataSource Behaviour in a Class Module

  • Thread starter Thomas Brendgen
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top