ADO Data Control
Bit of a newbie going through Peter Wright's Beginning VB6 book...
How come I can set an ADODC's properties with...
With Adodc1
.ConnectionString = "Provider= etc..."
.CommandType = adCmdTable
.RecordSource = "Titles"
End With
But I can't create a record set object from the above like:
Private m_recTitles as ADODB.Recordset (In General Declarations)
Set m_recTitles = Adodc1.Recordset (In Form1.Load())
And yet it works if I put the information in manually...?
Bit stumped, would love a pointer in the right direction...
Russ
__________________
Regards
Russ (Programing on L plates..!)
|