Link to home
Start Free TrialLog in
Avatar of u3kim
u3kim

asked on

Using ADODC1 Control in VB6

Guys,

I wants to add a ADODC1 Control to my form and  Assign the Connection and Recordset Property throught Coding.

After that i wants to Assign that Current Record set to  One more new Recordset.  So that i can populate that record in some fileds. (please not i dont wants to assign that directly to the controls thro ADODC control. becase using the values i need to get some more records for that).

Each click in ADODC1   movenext or movelast.... i need that values in TEMP RECORDSET.
So that i can using that Temp recordset i can do the next steps.

Please if you any one have idea for this?




Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Me.Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Temp\db1.mdb;Persist Security Info=False"
Me.Adodc1.RecordSource = "Table1"
Me.Adodc1.Refresh
   
MsgBox "Test = " & Me.Adodc1.Recordset!Test
Avatar of u3kim
u3kim

ASKER

Hi
This method is not working.

please note this
***********************************************************************************************
After that i wants to Assign that Current Record set to  One more new Recordset.  So that i can populate that record in some fileds. (please not i dont wants to assign that directly to the controls thro ADODC control. becase using the values i need to get some more records for that).

 "Each click in ADODC1   movenext or movelast.... i need that values in TEMP RECORDSET.
 So that i can using that Temp recordset i can do the next steps."

***********************************************************************************************

but now i added a textbox and asssign the value to that and each time the Text Field Change Event i am executing the other values.
I don't mind, but I would like to get my two cents in on this one.  If it didn't work, then let me know, and I can propose new or different techniques to solve your problem.  Abandoned questions get on my nerves, when I discover that someone didn't give me a chance to help.

Thanks,
Bob
ASKER CERTIFIED SOLUTION
Avatar of Netminder
Netminder

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial