Hi all,

I've got a problem with a dataset fill.

My application uses an odbc connection to connect to sql server and extract records.

The error I get is the following:

The select command property has not been initialized before calling fill.

but my initialization code is the following:

VB Code:
  1. CType(Me.OdbcNetDataset, System.ComponentModel.ISupportInitialize).BeginInit()
  2.         CType(Me.OdbcEmailAgentDataset, System.ComponentModel.ISupportInitialize).BeginInit()
  3.         CType(Me.OdbcEmailDataset, System.ComponentModel.ISupportInitialize).BeginInit()
  4.         CType(Me.EmailDataset, System.ComponentModel.ISupportInitialize).BeginInit()
  5.         CType(Me.EmailAgentDataset, System.ComponentModel.ISupportInitialize).BeginInit()
  6.         CType(Me.NetDataset1, System.ComponentModel.ISupportInitialize).BeginInit()

What could be my error?

Thanks