Discussion:
VB error with access Help
(too old to reply)
Russell Brandl
2004-10-11 18:31:22 UTC
Permalink
Hello,
I get this error when I try to bring an application written in VB 4 into VS
6??

Could not find Data Access Library. Cannot Create reference.


Visual Basic tried to create a reference to the Microsoft DAO Object Library
through the Data control, but failed. Verify that all system registry keys
are valid and, if they are not, run Visual Basic setup again.


----------------------------------------------------------------------------
----
Send feedback to MSDN.Look here for MSDN Online resources.


Thanks
Russ
Kevin Yu [MSFT]
2004-10-12 03:31:26 UTC
Permalink
Hi Russell,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that when you're trying to use VB6 open a
project which was written in VB4, an error message shows. If there is any
misunderstanding, please feel free to let me know.

Based on the error message, I think this occured because the certain
version of DAO referenced by that project was not installed properly on
that machine. Could you let me know the version of DAO that project is
using? Here is a KB article about how to redistribute DAO 3.6

http://support.microsoft.com/default.aspx?scid=KB;EN-US;233002

HTH. If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT]
2004-10-14 14:29:19 UTC
Permalink
Hi Russell,

I'd like to know if this issue has been resolved yet. Is there anything
that I can help. I'm still monitoring on it. If you have any questions,
please feel free to post them in the community.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Russell Brandl
2004-10-15 21:43:06 UTC
Permalink
Kevin,

I got the two dao files registered but it still is not happy. Wants DAO 2.5
Object Library???? I now get these errors see below:
Visual Basic Reference

The project file 'item1' contains invalid 'item2' key value. Valid range is
0 to 'item3'
The key value specified in the .VBP file was out of range. This error has
the following cause and solution:

a.. The .VBP file contains a key value that is not in the specified range.
The file may be corrupt.
Install a backup copy of the specified file or modify the file using a
text editor to correct the error.

Warning Modifying a Visual Basic file in an editor other than Visual Basic
may corrupt the file. This is only recommended for advanced users.


----------------------------------------------------------------------------
----

Send feedback to MSDN. Look here for MSDN Online resources.


Visual Basic Reference

Could not find Data Access Library. Cannot Create reference.
Visual Basic tried to create a reference to the Microsoft DAO Object Library
through the Data control, but failed. Verify that all system registry keys
are valid and, if they are not, run Visual Basic setup again.


----------------------------------------------------------------------------
----

Send feedback to MSDN.Look here for MSDN Online resources.

object library
A file with the .olb extension that provides information to Automation
controllers (like Visual Basic) about available objects. You can use the
Object Browser to examine the contents of an object library to get
information about the objects provided.


----------------------------------------------------------------------------
----

Send feedback to MSDN.Look here for MSDN Online resources
Post by Kevin Yu [MSFT]
Hi Russell,
I'd like to know if this issue has been resolved yet. Is there anything
that I can help. I'm still monitoring on it. If you have any questions,
please feel free to post them in the community.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT]
2004-10-16 07:11:33 UTC
Permalink
Hi Russ,

I'd like to know what version of DAO do you reference in your project. If
using DAO 2.5, please try to check the following link:

http://support.microsoft.com/default.aspx?scid=KB;EN-US;130646

If you're not quite sure, and the KB article didn't provide the resolution,
please also use Component Checker to check what versions of DAO have been
installed on the machine.

http://www.microsoft.com/downloads/details.aspx?FamilyID=8f0a8df6-4a21-4b43-
bf53-14332ef092c9&DisplayLang=en

BTW, what database are you using?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Russell Brandl
2004-10-16 11:16:09 UTC
Permalink
Kevin,

This program was written with VB 3 or 4 and uses Access 2.0 I wanted to
update it and needed the sourcecode.
Thanks
Russ
Post by Kevin Yu [MSFT]
Hi Russ,
I'd like to know what version of DAO do you reference in your project. If
http://support.microsoft.com/default.aspx?scid=KB;EN-US;130646
If you're not quite sure, and the KB article didn't provide the resolution,
please also use Component Checker to check what versions of DAO have been
installed on the machine.
http://www.microsoft.com/downloads/details.aspx?FamilyID=8f0a8df6-4a21-4b43-
Post by Kevin Yu [MSFT]
bf53-14332ef092c9&DisplayLang=en
BTW, what database are you using?
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT]
2004-10-19 08:37:25 UTC
Permalink
Hi Russ,

Did the KB article in my last post help? I think this article deals with
this kind of problem.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Russell Brandl
2004-10-20 10:12:43 UTC
Permalink
Kevin,

I think it is that I only have the exe file and not the original vbp file
that has been my problem. It is a 217k file that was left by a DOD worker
that I was hoping to save for the Navy. I wish there was a way to get this
done.
Thanks
Russ
Post by Kevin Yu [MSFT]
Hi Russ,
Did the KB article in my last post help? I think this article deals with
this kind of problem.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT]
2004-10-21 12:35:51 UTC
Permalink
Hi Russ,

AutoReferenceDAO=1 in VB.INI auto adds reference to DAO library when VB
starts up. I don't think it is the reason why that error was generated.
Could you get to know what version of DAO was referenced by the
application? I think it is the library file that we're missing which makes
this error thrown. Is this error shown when project loads or application
starts?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Russell Brandl
2004-10-22 01:23:10 UTC
Permalink
Kevin,
DAO 25 and it happens when I try to Load the project.A series of key
associations problems happen first then the error.
Thanks
Russ
Post by Kevin Yu [MSFT]
Hi Russ,
AutoReferenceDAO=1 in VB.INI auto adds reference to DAO library when VB
starts up. I don't think it is the reason why that error was generated.
Could you get to know what version of DAO was referenced by the
application? I think it is the library file that we're missing which makes
this error thrown. Is this error shown when project loads or application
starts?
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT]
2004-10-22 09:38:33 UTC
Permalink
Hi Russ,

It seems that there is something wrong with the project file. I found that
you are having another thread in vstudio.setup newsgroup. Our engineer will
continue helping you on that thread. Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Russell Brandl
2004-10-25 09:42:44 UTC
Permalink
Kevin,
I do not know if Peter can help? I just need to add the ADO 2.5 references
in VB 6???
He said see below:
I have tried to locate the original programer no luck....
Thanks
Russ
Post by Kevin Yu [MSFT]
Hi Russell,
Once we have compiled a VB application into binary mode(EXE file), we can
not convert it back into VB source file(.frm, .vbp and so on) We can only
convert it into assembly language which is more related with low level and
computer related. That is different from the advaced language such as VB.
That is why every software will care its source code, because with source
code every one can change and compile a new build for sale. Because it is
almost impossible to redeisgn a software based on it binary format(exe
format).
I think you may have to contact the original software development engineer
or company to see if they have any available source code for the software.
Best regards,
Peter Huang
Microsoft Online Partner Support
Hi Russ,
It seems that there is something wrong with the project file. I found that
you are having another thread in vstudio.setup newsgroup. Our engineer will
continue helping you on that thread. Thanks!
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Kevin Yu [MSFT]
2004-10-26 09:35:21 UTC
Permalink
Hi Russ,

I found that Peter has replied to you on another thread. He is more
experienced on VB project than I am. I think he will help you to go through
this issue. Thanks!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Russell Brandl
2004-10-20 12:43:27 UTC
Permalink
Kevin,
Here is my VB.INI file No AutoReferenceDAO=1 Line???

[Add-Ins32]
MTxAddIn.RegRefresh=1
DataFormDesigner.DFDClass=0
[VBX Conversions32]
msoutlin.vbx={BE4F3AC8-AEC9-101A-947B-00DD010F7B46}#1.0#0;C:\WINDOWS\System3
2\msoutl32.ocx
cmdialog.vbx={F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.0#0;C:\WINDOWS\System3
2\comdlg32.ocx
grid.vbx={A8B3B723-0B5A-101B-B22E-00AA0037B2FC}#1.0#0;C:\WINDOWS\System32\gr
id32.ocx
crystal.vbx={00025600-0000-0000-C000-000000000046}#1.0#0;C:\WINDOWS\System32
\crystl32.ocx
anibuton.vbx={F72CC888-5ADC-101B-A56C-00AA003668DC}#1.0#0;C:\WINDOWS\System3
2\anibtn32.ocx
graph.vbx={0842D103-1E19-101B-9AAF-1A1626551E7C}#1.0#0;C:\WINDOWS\System32\g
raph32.ocx
gauge.vbx={7A080CC8-26E2-101B-AEBD-04021C009402}#1.0#0;C:\WINDOWS\System32\g
auge32.ocx
keystat.vbx={B9D22273-0C24-101B-AEBD-04021C009402}#1.0#0;C:\WINDOWS\System32
\keysta32.ocx
msmapi.vbx={20C62CAE-15DA-101B-B9A8-444553540000}#1.0#0;C:\WINDOWS\System32\
msmapi32.ocx
mci.vbx={C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.0#0;C:\WINDOWS\System32\mci
32.ocx
mscomm.vbx={648A5603-2C6E-101B-82B6-000000000014}#1.0#0;C:\WINDOWS\System32\
mscomm32.ocx
picclip.vbx={27395F88-0C0C-101B-A3C9-08002B2F49FB}#1.0#0;C:\WINDOWS\System32
\picclp32.ocx
spin.vbx={B16553C3-06DB-101B-85B2-0000C009BE81}#1.0#0;C:\WINDOWS\System32\sp
in32.ocx
msmasked.vbx={C932BA88-4374-101B-A56C-00AA003668DC}#1.0#0;C:\WINDOWS\System3
2\msmask32.ocx
threed.vbx={0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0;C:\WINDOWS\System32\
threed32.ocx
[Visual Basic]
vbpath=C:\Program Files\Microsoft Visual Basic
CBTPath=C:\Program Files\Microsoft Visual Basic
ReportDesign=1
BooksExePath=C:\Program Files\Microsoft Visual Basic\VBOnline
DebugWindow=118 124 454 591 0
MainWindow=0 0 1024 74 1
ToolBox=4 78 0 0 1
ToolBar=0
ProjectWindow=786 81 220 159 0
PropertiesWindow=836 214 194 518 0
ColorPalette=72 673 0 0 0
CustomColors=16777215 16777215 16777215 16777215 16777215 16777215 16777215
16777215 16777215 16777215 16777215 16777215 16777215 16777215 16777215
16777215
RecentFile1=A:\menus\TEXTEDIT.VBP
RecentFile2=A:\TEXTEDIT.VBP
RecentFile3=C:\Program Files\Microsoft Visual
Basic\samples\menus\TEXTEDIT.VBP
RecentFile4=C:\Program Files\Microsoft Visual
Basic\samples\visdata\VDADDIN.VBP
[ToolboxBitmaps32]
Excel.Sheet.5=C:\Program Files\Microsoft Visual Basic\vb32.exe,100
Excel.Chart.5=C:\Program Files\Microsoft Visual Basic\vb32.exe,101
Word.Document.6=C:\Program Files\Microsoft Visual Basic\vb32.exe,102
Word.Picture.6=C:\Program Files\Microsoft Visual Basic\vb32.exe,103
Post by Kevin Yu [MSFT]
Hi Russ,
Did the KB article in my last post help? I think this article deals with
this kind of problem.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Unicorn
2004-10-28 10:05:08 UTC
Permalink
Russell......

I have read this thread you are having with Kevin. A couple of things
are not clear;
DO you have the original source?
If so, post the VBP file for the project.... It should be fairly
simple to identify the VB4 components that are causing you problems. Then
something might be achieved

There are a couple of decompilers around on the net that will reverse
engineer the program to it's original source.... Provided the EXE is in
P-Code format, even better if it is 16bit code

Or are you trying to reverse engineer the bugger?

There are a couple of decompilers around on the net that will reverse
engineer the program to it's original source.... Provided the EXE is in
P-Code format, even better if it is 16bit code
Post by Russell Brandl
Hello,
I get this error when I try to bring an application written in VB 4 into VS
6??
Could not find Data Access Library. Cannot Create reference.
Visual Basic tried to create a reference to the Microsoft DAO Object Library
through the Data control, but failed. Verify that all system registry keys
are valid and, if they are not, run Visual Basic setup again.
--------------------------------------------------------------------------
--
Post by Russell Brandl
----
Send feedback to MSDN.Look here for MSDN Online resources.
Thanks
Russ
Russell Brandl
2004-11-05 12:25:32 UTC
Permalink
Hello,
I do not have the source code, I have tried to find the original programer
no luck. Yes I am trying to reverse engineer this application to update and
finish it.
Later
Russ
Post by Unicorn
Russell......
I have read this thread you are having with Kevin. A couple of things
are not clear;
DO you have the original source?
If so, post the VBP file for the project.... It should be fairly
simple to identify the VB4 components that are causing you problems. Then
something might be achieved
There are a couple of decompilers around on the net that will reverse
engineer the program to it's original source.... Provided the EXE is in
P-Code format, even better if it is 16bit code
Or are you trying to reverse engineer the bugger?
There are a couple of decompilers around on the net that will reverse
engineer the program to it's original source.... Provided the EXE is in
P-Code format, even better if it is 16bit code
Post by Russell Brandl
Hello,
I get this error when I try to bring an application written in VB 4 into
VS
Post by Russell Brandl
6??
Could not find Data Access Library. Cannot Create reference.
Visual Basic tried to create a reference to the Microsoft DAO Object
Library
Post by Russell Brandl
through the Data control, but failed. Verify that all system registry keys
are valid and, if they are not, run Visual Basic setup again.
--------------------------------------------------------------------------
--
Post by Russell Brandl
----
Send feedback to MSDN.Look here for MSDN Online resources.
Thanks
Russ
Unicorn
2004-11-05 22:38:56 UTC
Permalink
Russell,

You might want to look at this
http://ourworld.compuserve.com/homepages/DoDi/vbdis.htm

Matt
Russ
2004-11-08 20:14:03 UTC
Permalink
Matt,
This site seems to be down, is there another site?
Thanks
Russ
Post by Kevin Yu [MSFT]
Russell,
You might want to look at this
http://ourworld.compuserve.com/homepages/DoDi/vbdis.htm
Matt
Loading...