Solved

Does VB6 work with Access 2002 ?

Posted on 2002-07-19
5
139 Views
Last Modified: 2010-05-02
Do I have to use VB.NET to work with an Access 2002 (is this the same as Office XP?)  database? I currently have VB 6.

THanks

Jeff
0
Comment
Question by:jscharpf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7164704
yes. you need to use an OleDBCOnnection
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 50 total points
ID: 7164707
Sorry. Using VB6, you can use Access 2002 database if you are using the ADO Jet 4.0 provider.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 7164714
Indeed emoreau is correct, either use ADO Jet 4.0 provider or use DAO 3.6 rather than 3.51 or earlier. The access 2002 (Office XP it is) and Access 2000 both require you to use MDAC 2.1 or higher which includes the 4.0 jet provider (MDAC 2.6 and higher does not ship the jet engine though it is available seperately) or to use DAO library version 3.6 or higher.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 7164717
If you upgrade to service pack 4 or 5 of VB then these are required elements and will therefore be available to you.
0
 

Author Comment

by:jscharpf
ID: 7164721
thanks!

Jeff
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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
Course of the Month10 days, 15 hours left to enroll

632 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