Solved

Creating VB6 Frond end with Access 2000 Back End database

Posted on 2002-04-18
6
170 Views
Last Modified: 2013-11-13
This question may require some more points, but I don't have enough points, being new to this group.

I am new to VB6 and am following "Teach Yourself Database
Programming with Visual Basic 6" to create a form to
retrieve data from A2k Database. The error message I
get is "Unrecognized Database format".  I also changed
the reference to MS Data Object 3.6 also, but could not
figure out the problem.

Per the book I am trying to create the following
Public Subs:
    OpenDB   (Opens the DB)
    BindControls (to bind the fields on form to db fields)

I'd really appreciate if someone send my a small sample
project or give me step-wise directions to fix this
problem.

TIA
sanand@dsd.co.pima.az.us



0
Comment
Question by:Payal
6 Comments
 
LVL 5

Expert Comment

by:rkot2000
ID: 6951540
you need sp4 for vb6

for datacontrol you need to set connect to Access 2000;

for dao
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q238401

p.s. dao is dead end you should use ado.
0
 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6951542
Your Data Access THINKS you are using an Access 97 database.  How are you actually opening the database?  Show the code and then we can tell you what needs to be changed to use the Access 2000 dtabase.
0
 
LVL 1

Expert Comment

by:satj2000
ID: 6951983
Open your database with your access application, then go to database tools, change the database format to 97 database format. Then your stuff will work without problem,
Good Luck,
Ameen.
--------------------------------
Need cheap and reliable web hosting? Check out unlimitedhostingplans.com, sign up now and win a X-box!
0
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.

 
LVL 44

Expert Comment

by:Arthur_Wood
ID: 6952156
satj2000....that seems a bit extreme.  If Payal simply uses the correct version of DAO in his/her references, then there should be no problem opeing an Access 2000 MDB from VB 6.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7660455
Hi Payal,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Save as PAQ -- No Refund.

Payal, Please DO NOT accept this comment as an answer.
EXPERTS: Post a comment if you are certain that an expert deserves credit.  Explain why.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7755293
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

821 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