Solved

Using ADODC1 Control in VB6

Posted on 2003-10-30
6
213 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
ID: 9652936
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
ID: 10225312
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
ID: 10227765
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
ID: 10248147
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

679 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