Solved

Using ADODC1 Control in VB6

Posted on 2003-10-30
6
195 Views
Last Modified: 2013-11-26
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?




0
Comment
Question by:u3kim
  • 2
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
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
0
 

Author Comment

by:u3kim
Comment Utility
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.
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
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
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
Comment Utility
TheLearnedOne,

Your objection is noted, and well-taken, I hope, by the person who asked this question.

Points (250) refunded, but question not deleted; instead, I've closed it.

Netminder
EE Admin
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now