Need a Visual Basic Guru...

Status
Not open for further replies.

Major Gun

Ars Scholae Palatinae
802
Well here is the problem. Basically we have this VB script in an access database that converts an access database to a foxpro type database. It runs fine on a machine with Windows 95 and Access 97 but it won't run on a Windows 2000 machine with Access 2000. Here is the error I get:

2507 The FoxPro 2.6 type isn't an installed database type or doesn't support the operation you chose.

I think this might be the offending code:

DoCmd.TransferDatabase acExport, "FoxPro 2.6", lblSelected, acTable, "Export2Sema4", "Sema4.dbf"
Screen.MousePointer = 0
MsgBox "Export Complete", 16

I checked my reference libraries in Access 2000 and it looks like I have the same ones except they are newer versions:

Visual Basic For Applications
Microsoft Access 9.0 Object Library
OLE Automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 Object Library

Any ideas?
 

bw

Ars Tribunus Angusticlavius
7,308
Originally posted by Major Gun:
Well i have MDAC 2.6 sp1 installed. Should I try an older version. Also when I installed Access I made sure to check everything. I'm pretty sure I have everything installed.

Yes, I've had stuff developed with MDAC 2.5 that doesn't seem to work when only MDAC 2.6 is installed.

I'd say try installing an older version of MDAC. It certainly shouldn't hurt to try it.
 

GrumpySmurf

Ars Scholae Palatinae
893
Subscriptor
I worked a bit with a problem like this, but it was a number of months ago.

I'd have to look in my notes somewhere, but I have a question, does
your access to the database use the JET engine? I would suppose it does... if that's the case, I believe that MDAC 2.6 does not come with JET in it because they are trying to get rid of older data access formats. I would poke around that microsoft data area - you can download the JET engine seperately, etc.

Also, you can go to technet online and type in the error and see what you pull up.

Let us know how it turns out.
 
Status
Not open for further replies.