Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using ADODC1 Control in VB6

Posted on 2003-10-30
6
Medium Priority
?
238 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
4 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

Independent Software Vendors: 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

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 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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

772 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