Solved

Connect to FoxPro 2.0 for DOS database from VB6

Posted on 2006-06-15
5
333 Views
Last Modified: 2010-04-17
I have a FoxPro 2.0 for DOS database and am writing an app in VB6. I need to look up a record in the database and then add data to the record and update the record. How do I open the database table from VB6 so that I can work with it? My experience has only been with Access database tables so I need a little help here!
0
Comment
Question by:sahinman
  • 3
  • 2
5 Comments
 
LVL 20

Accepted Solution

by:
alainbryden earned 500 total points
ID: 16915523
Well fortunately for you, you can open this type of file from within Access. With your database open use the Open function, use dbase III as the file type, and select the fox 2.0 file you want to use. It will become an available table in your database.
0
 

Author Comment

by:sahinman
ID: 16918874
I tried your solution with VB6 and received the following error message:  Couldn't find installable ISAM
How do I fix this error?
0
 
LVL 20

Expert Comment

by:alainbryden
ID: 16919348
Microsoft has a very detailed article ( http://support.microsoft.com/kb/155666 ) that described the ISAM DLL's , how to confirm that they are on the PC and that the registry entries are setup for Jet to find them.  The recommend all kinds of things including reinstalling access. The one thing they never mention is to be sure the dll's are registered, so I'll walk you through that.

first, just try regsvr32 "C:\WINDOWS\system32\Msxbse35.dll" in the run box, if that does the trick, then you're set, if not, then it might be a little tougher.

Msxbse35.dll is what you need to user foxpro with access. It's possible that this dll file is unavailable to you. You can check by opening access directly and seeing if the format is available. I guess you could do a check for it. If you find that it isn't registered, you can do so manually like so:

1) From the Start button, choose Find, and then select Files or Folders.
2) In the Named box, enter: Regsvr32.exe
3) Insure the Look in box is for your entire hard disk and the check box for Include Subfolders is checked.
4) This file should be found in your Windows\System directory. If it is found, but not is this directory, simply place a copy in the Windows\System directory
5) Once this file is found, LEAVE the find window open. (If multiple files are found, the copy we are concerned with is in the Windows\System directory.)
6) From the Start button, choose Run.
7) In the Open box, enter: Regsvr32.exe
8) Then, using your mouseis in the proper directory, perform another Find for:
Msxbse35.dll, you can "drag-and-drop" the Msxbse35.dll file that was FOUND next to what you just typed in the open box (this should put the entire path to this DLL file next to regsvr32.exe.)
(if you can't find it I found a download source here http://webzila.com/dll/1/MSXBSE35.zip )
9) Click OK
10) You should get a message box that confirms the DLL file was registered successfully.
11) Click OK
12) Close the Find window
13) Open Access and try the export process again. The Fox file type should now be in the list.

This whole error is probably occuring because you didn't install access with full options. If it's available to you, it may be easier to do this when all else fails.

I really hope that fixes the problem.
0
 

Author Comment

by:sahinman
ID: 16923104
WOW! It works! This web site is awesome. Thanks.
0
 
LVL 20

Expert Comment

by:alainbryden
ID: 16923338
Glad I could help
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

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.
A short article about problems I had with the new location API and permissions in Marshmallow
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now