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

x
?
Solved

Creating VB6 Frond end with Access 2000 Back End database

Posted on 2002-04-18
6
Medium Priority
?
177 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

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.
If you don't know how to downgrade, my instructions below should be helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

926 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