Re: Accessing mdb file via VB code
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Tue, 4 Jul 2006 22:09:48 -0500
"AK" <nospam@xxxxxxxxxxx> wrote in message
news:OzsFjZ5nGHA.1248@xxxxxxxxxxxxxxxxxxxxxxx
My Reply In line"DAO"
I am using MS VB 6.0 SP6 the about says it is Ver9782, Forms3: 11.0.6550
Win XP SP2
Access being used "out of the box". My application works fine when running
without a password.
<Snip>
If you are using ADO and ADO providers are you by any chance using a
control (DataGrid) on this second form?
How did you know? Yes I am.
Works for the form that had a flexgrid. It is when I click to the form
having the datagrid when I get the error.
Ok, then Personally I would blow off all DAO controls. You don't need them,
unless you are using DAO, and it sounds like this is the problem.
but
If so you will need to make sure the DAO components and typelib are
installed and registered. You should find them in Progr~Files\Common
Files\Microsoft Shared\DAO. This is the simple fix.
OK, I reregistered the dlls, Dao350.dll and Dao360.dll with regsvr32
In the folder there is also type lib in there named DAO2535.TLB
Am I supposed to do somthing with this file. I tried the regsvr32 on it
that says it is not an exe or dll. Am I supposed to do some other actionon
it??
To register typelibs checkout this utility...
http://www.vbaccelerator.com/home/VB/Utilities/Type_Library_Registration_Utility/article.asp
There are others, but this at least explains what's going on.
The DAO2535.tlb is used for development - ignore it in this situation.
or
[Occasionally these files are not correctly installed or registered on
WinXP
boxes with Jet4. Also be aware - the problem is not that you are using
"resolution"accessing DAO from your program, the problem is that these controls need
the
DAO to be properly installed. Therefore this has nothing to do with
project
references.]
If that doesn't solve the problem then try this...
http://support.microsoft.com/default.aspx?scid=kb;en-us;299457
Make sure you have only one MSVBVM60.dll on your machine.
I did a scan and I only have one MSVBVM60.dll on my machine.
I looked over the KB article you mentioned above and under the
section is says:the
*********
"To resolve this problem, make sure that the version of MSVBVM60.dll is
same version that is distributed with Visual Basic 6.0 SP4 (which isto
6.00.8877 for SP4 and 6.00.8964 for SP5). MSVBVM60.dll is located in the
\WINNT\System32 or \Windows\System folder.""
************
OK Mr Gates, are you sure that you are really telling me here that I need
roll my MSVBVM60.dll which was installed with VB6 SP6 and is versionexaclty
6.0.97.82 BACK to a version from an earlier service pack, i.e to dll
version 6.00.8877??? (I mean I am reading the language as telling me
that but...... Additionally, if so, where do I get the dll that isof
distrubuted with VB6 SP 4?
Ralph is this correct? Am I really supposed to get an earlier SP4 version
the dll and register it, even though I have VB6 w/ SP6 installed? Soundsodd
to me. If this is what I need though, do you know where to get the earlier
version from a "clean" site?
That does appear to be the 'cure' in many cases. but I never get the
followup, thus I have no knowledge of long-range consequences. To my mind it
seems like there would have to be.
Since running into this problem several times myself, and doing a bit of
research (googling, inventoring components, ...) I don't have an answer. MS
remains mute (or at least I can't find the blog). Also what works for one
often doesn't work for another.
Some people report it as happening to an entire new suite of boxes. Others
report scattered behavior. In cases where I have been called in, it has been
the latter. Each incident though isolated appeared on boxes that showed no
obvious difference between its inventory and configuration than its
brethren.
I am only rattling on in hopes someone else out there that KNOWS, will jump
in.
So the only 'cure' I know of is to install an old version of MSVBVM60.dll or
completely re-install everything. I usually do the latter, because while a
lengthy PITA - it will at least eventually provide a solution. I have wasted
days popping components in and out and still didn't get it to work. <g>
-ralph
another
Thanks
AK
If that doesn't seem to resolve the problem, then it is caused by
withmiss-match of components. If you are still having trouble report back
all the specifics of your problem domain. (Data Access Libraries, OS
version, Jet, MDAC, etc.) You can fiddle away one by one, or simply burn
everything MDAC/Jet down to the water line and start over.
hth
-ralph
.
- Follow-Ups:
- Re: Accessing mdb file via VB code
- From: AK
- Re: Accessing mdb file via VB code
- From: AK
- Re: Accessing mdb file via VB code
- References:
- Accessing mdb file via VB code
- From: AK
- Re: Accessing mdb file via VB code
- From: Jeff Johnson
- Re: Accessing mdb file via VB code
- From: Ralph
- Re: Accessing mdb file via VB code
- From: AK
- Re: Accessing mdb file via VB code
- From: Ralph
- Re: Accessing mdb file via VB code
- From: AK
- Accessing mdb file via VB code
- Prev by Date: Re: Text_formula to value
- Next by Date: Re: Decompiling VB 6
- Previous by thread: Re: Accessing mdb file via VB code
- Next by thread: Re: Accessing mdb file via VB code
- Index(es):
Relevant Pages
|
Loading