Re: ADO and Jet creates error on XP Home Edition SP2
- From: "Garry Grolman" <GarryGrolman@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 6 Jun 2005 07:33:04 -0700
Dear Uwa,
Thanks for replying. Indeed the error comes from the vb code when we try to
call Jet to compact access 97 files.
We couldn't recreate the error on our machines, so we put a function that
writes message to a text file for each step of the program. We asked the user
to run the program and send us the text file and we see what message was
reached before the error message.
I also went to the customer today and ran the software myself to see the
error messages occuring.
The problem occurs in a function that calls the Jet's CompactDatabase
function :
Set JRO = New JRO.JetEngine
strParameter = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
strDataBase
strParameter2 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +
mvarSourceApplicationDirectory + "\temp.mdb;Jet OLEDB:Engine Type=4"
Call JRO.CompactDatabase(strParameter, strParameter2)
This is where we get the error 13 message. (Note: we have to run the compact
function on our databases because otherwise we get error message concerning
the collating order when we run the software on a different operating system
then we use for development, e.g. German Windows).
We put a parameter to bypass this function, the next step is to connect to a
database file with ADO :
Set conBPDefs = New Connection
conBPDefs.CursorLocation = adUseClient
conBPDefs.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" +
App.Path + "\SYS\BPDefs.mdb;"
There the user gets the error -2147467259 with a message 'can't open a
database that was created with a previous version of the application'
(translation from Hebrew).
I hope this information will help to find the problem.
Best Regards
A general note: We already have about 8000 users and we managed to find
solutions to all problems (e.g. setup, printing, dlls, etc..) but when it
comes to ADO we feel we don't know what to do (except asking the user to
reinstall MDAC and JET). We would like atleast a tool that will enable to
manage and uninstall ADO components. Compchecker is not helping at all.
"Uwa Agbonile [MSFT]" wrote:
> XP Home Edition SP2 ships with MDAC 28 SP1 so that would explain why the
> MDAC 28 RTM won't install.
>
> If I recall correctly, error code 13 is a VB6 error code so is not
> originating from ADO. You might want to take a second look at the cause of
> the error because it might not be related the MDAC on the machine.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Regards,
> Uwa Agbonile[MSFT]
>
> "Garry Grolman" <GarryGrolman@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:FBAD5914-CF93-4519-BB6D-71849DA6B1C5@xxxxxxxxxxxxxxxx
> > We develop with VB6, and use ADO and Jet4 to store and read data from
> > MS-Access 97 files.
> > In some installations users report that when starting the application,
> they
> > get an error message : 'error 13-type mismatch'. We checked and it happens
> > when we try to compact the database files.
> > In most cases the problem is solved when we instruct the user to update
> MDAC
> > and Jet 4 to the latest versions from Microsoft site.
> > In several cases, mostly in XP Home Edition SP2, update to MDAC2.8 won't
> run
> > (a message says that MDAC2.8 RTM isn't compatible with this version of
> > Windows...) and update to Jet 4 SP8 will also not run (message says that
> the
> > installed service pack is newer...).
> > How can we solve this problem ?
> > are there any tools to manage ADO (compChecker doesn't help) ?
>
>
>
.
- Follow-Ups:
- Re: ADO and Jet creates error on XP Home Edition SP2
- From: Uwa Agbonile [MSFT]
- Re: ADO and Jet creates error on XP Home Edition SP2
- References:
- ADO and Jet creates error on XP Home Edition SP2
- From: Garry Grolman
- Re: ADO and Jet creates error on XP Home Edition SP2
- From: Uwa Agbonile [MSFT]
- ADO and Jet creates error on XP Home Edition SP2
- Prev by Date: RE: adomd.net Getting member key column
- Next by Date: RE: adomd.net Getting member key column
- Previous by thread: Re: ADO and Jet creates error on XP Home Edition SP2
- Next by thread: Re: ADO and Jet creates error on XP Home Edition SP2
- Index(es):
Relevant Pages
|
Loading