Hello,
Below is part of a statement that I use to assign a DataSource to a text box:
Adodc1.ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;Password=pw;User ID=id;Data Source=" & App.Path & "\db.mdb;Persist Security Info=True;Jet OLEDB:System database=" & App.Path & "\ss.mdw;Jet OLEDBatabase Password=pw"
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "SELECT * From Revenue”
Set Text2.DataSource = Adodc1
Text2.DataField = "Cost"
I would like to do a similar assignment for an OLE object on a VB6 form, can somebody please let me know what code I should use. Putting OLE2 in place of Text2 above does not work. I currently have SP4 installed.
Thank You
Below is part of a statement that I use to assign a DataSource to a text box:
Adodc1.ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;Password=pw;User ID=id;Data Source=" & App.Path & "\db.mdb;Persist Security Info=True;Jet OLEDB:System database=" & App.Path & "\ss.mdw;Jet OLEDBatabase Password=pw"
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "SELECT * From Revenue”
Set Text2.DataSource = Adodc1
Text2.DataField = "Cost"
I would like to do a similar assignment for an OLE object on a VB6 form, can somebody please let me know what code I should use. Putting OLE2 in place of Text2 above does not work. I currently have SP4 installed.
Thank You