Re: Error 0x800A0BB9 When Reconnecting in same process instance
- From: harrier <harrier@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 06:11:00 -0800
The link looks promising. What I noticed in the article you sent is I'm
using Jet40 instead of Jet30 for the MS Access 95 database. I will try
switching database engines to see if that clears things up.
-harrier
"Ralph" wrote:
.
"harrier" <harrier@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2DE00EE8-DE55-47CF-8C6C-CF855A971033@xxxxxxxxxxxxxxxx
I have an application in C++ 2003 that connects to an Access 95 database.the
The database cannot be converted to 2003 because it cannot be opened in
primary application (3rd party) the database is for. So cross theconverting
the database thing off your list(s) immediately.process
Generally the process flow for users is to open the database, run a
against the data then terminate the application. I recently added afeature
to compact the database but I have to close the connection in order toof
perform the compact. After compacting I reconnect to the database and get
the following error on the Connect call:
Error: 0x800A0BB9
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
I've tracked down that if I comment out a call to Connection.OpenSchema()
the problem goes away. What I do is call OpenSchema and look at the list
tables. There are seven table names I look for to ensure it's a valid
application database as opposed to a generic MDB file.
Any ideas?
-harrier
Not enough information for more than a couple of hints.
Most of the time the error is exactly what it is reporting - some place you
have confused datatypes, perhaps using a long where a string is required, an
array instead of a string, etc.
This is easy to do as data items like recordset values are Variants - often
ETC will allow a particular datatype to work in some contexts but not in
others.
It is also possible to get into issues when using 'newer' data access
libraries/engines/providers with 'older' database formats. See if this sheds
some light...
http://support.microsoft.com/kb/303528/
-ralph
- References:
- Prev by Date: Re: Pulling data from AS400 to Excel by SQL in VBA
- Previous by thread: Re: Error 0x800A0BB9 When Reconnecting in same process instance
- Next by thread: Re: Pulling data from AS400 to Excel by SQL in VBA
- Index(es):
Relevant Pages
|
Loading