Advertisement

07.19.2000 at 09:41AM PDT, ID: 10748262
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Connect to Access 2000 with VB6

Asked by offir_a in Visual Basic Programming

Tags: ,

Hi,
I'm trying to connect to a Access 2000 MDB with a VB6.
From all the options around and with the little knowledge I got - I'm quite lost! :)
After reading several answers from the archive, I've got to some point, but still far from the end.
I want to work only with code if possible. I try to stay away from data controls as much as I can because I want to log into the DB once and create recordsets and querydefs quite often. (btw, can you plz write in a word or two what's the main difference between them!? thanks!)

The things I got so far:
In the project's references I got:
Microsoft DAO 3.6 Object Library,
Microsoft ActiveX Data Objects 2.5 Library, and Microsoft Data Binding Collection (if it got anything to do with this...).

In the Code:
' Global DB:
Public gDB As Database

' Connection with DB:
sTempDBDir = App.Path & "\whatever.mdb"
Set gDB = DBEngine.OpenDatabase(sTempDBDir)

' Openning a Recordset:
Set rstOutput = gDB.OpenRecordset(strTempSQL)

' Everything works just fine till here, I can get the recordcount from this recordset and do all the stuff with it. now I want to connect this recordset to a listbox (it's a HUGE recordset, around 100K list. yep. it's time to move to Oracle, don't you think?). Now, I don't know if I should use a DBList or a ListBox, how the connection should work and what's the plain syntax for it...

Now, there's a good chance I got it all wrong, and this is NOT the best way to connect to an Access 2000 DB, and I should use the Adodb objects, I really don't know, I never had to work on windows 2000 with office 2000 and VB 6...

I'd appreciate it a LOT if you'll write a simple application that connects to a new version MDB, makes some SQLs in it, connects it to a list box or whatever and closes the DB at the end. I'd like to know how to do it with Code only and with objects only.

If you need any more info about how and what I use - I'll check this question (on my) tomorrow. thanks!

Thanks very VERY much,
Offir. :)

P.S:
I've put quite a high amount of points, PLEASE be very clear and elaborate on the answer as much as you can. I'm quite tired searching for info on the web regarding Access 2000 and VB... where do they hide this info?! :-\ If you got some URLs that could help me, I'd love to read those too!...

Again, Thanks and have a GREAT day.
Offir. :)Start Free Trial
[+][-]07.19.2000 at 09:50AM PDT, ID: 3467114

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.19.2000 at 10:28AM PDT, ID: 3467635

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.19.2000 at 10:34AM PDT, ID: 3467752

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.19.2000 at 11:24AM PDT, ID: 3468419

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.19.2000 at 01:15PM PDT, ID: 3470274

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2000 at 04:31AM PDT, ID: 3478452

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Visual Basic Programming
Tags: vb6, access
Sign Up Now!
Solution Provided By: pierrecampe
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.20.2000 at 04:37AM PDT, ID: 3478514

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2000 at 06:14AM PDT, ID: 3479718

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.20.2000 at 07:19AM PDT, ID: 3480819

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2000 at 10:52AM PDT, ID: 3485492

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.23.2000 at 04:13AM PDT, ID: 3526280

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2000 at 06:25AM PDT, ID: 3541063

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2000 at 08:11AM PDT, ID: 3543972

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2000 at 08:11AM PDT, ID: 3543973

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2000 at 08:14AM PDT, ID: 3544092

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2000 at 08:14AM PDT, ID: 3544093

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2000 at 08:57AM PDT, ID: 3545033

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32