Solved

Connect to FoxPro 2.0 for DOS database from VB6

Posted on 2006-06-15
5
336 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
This is an explanation of a simple data model to help parse a JSON feed
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

856 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