473,378 Members | 1,688 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Problem accessing Access database from VB2005

We've got a VB2005 program written some time back that we're trying to
do some maintenance on still from within VB2005 but now running on a
Vista Business PC (which I think may be relevant to the problem).

When we go to start up the project from within the VS environment
there are several build errors relating to an inability to find the
ADOX library. I can't remember without hours of reorientation and
checking back whether this was a part of MDAC or should be accessible
from System.Data.OleDB. If it was MDAC then this is something that may
have changed in a Vista environment because IIRC the traditional MDAC
calls no longer work in the same way.

Anyone recognise this problem please and can suggest a fix?

Many thanks
JGD
Oct 1 '08 #1
3 1859

Vista has WDAC , and WDAC has no ADOX and you can`t install MDAC ( as it
is a lower version )
see this thread
http://forums.microsoft.com/MSDN/Sho...74386&SiteID=1

the solution seems to be to use
tlbimp msadox.dll /out:ADOX28.dll

Then put this ADOX28.dll file on your development machine and add reference
to it.
however you should do this on a XP computer wich has MDAC 2.8 installed and
then copy the resulting assembly to the vista machine
( this is how i understood it )

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com



"John Dann" <ne**@prodata.co.ukschreef in bericht
news:qn********************************@4ax.com...
We've got a VB2005 program written some time back that we're trying to
do some maintenance on still from within VB2005 but now running on a
Vista Business PC (which I think may be relevant to the problem).

When we go to start up the project from within the VS environment
there are several build errors relating to an inability to find the
ADOX library. I can't remember without hours of reorientation and
checking back whether this was a part of MDAC or should be accessible
from System.Data.OleDB. If it was MDAC then this is something that may
have changed in a Vista environment because IIRC the traditional MDAC
calls no longer work in the same way.

Anyone recognise this problem please and can suggest a fix?

Many thanks
JGD

Oct 1 '08 #2
Okay here a folowup

Copy the "%Program Files%\Common Files\System\ado\msadox.dll" from working
XP machine to Vista machine

Execute "tlbimp msadox.dll /output:MSADOXASM.dll" . This will create the CLR
assembly file "MSADOXASM.dll"

Add this assembly to your project and add the "using MSADOXASM;" statement
to your code.

and the problem should be solved
HTH

Michel Posseth
http://www.vbdotnetcoder.com




"Michel Posseth [MCP]" <MS**@posseth.comschreef in bericht
news:uD**************@TK2MSFTNGP02.phx.gbl...
>
Vista has WDAC , and WDAC has no ADOX and you can`t install MDAC ( as it
is a lower version )
see this thread
http://forums.microsoft.com/MSDN/Sho...74386&SiteID=1

the solution seems to be to use
tlbimp msadox.dll /out:ADOX28.dll

Then put this ADOX28.dll file on your development machine and add
reference to it.
however you should do this on a XP computer wich has MDAC 2.8 installed
and then copy the resulting assembly to the vista machine
( this is how i understood it )

regards
Michel Posseth [MCP]
http://www.vbdotnetcoder.com



"John Dann" <ne**@prodata.co.ukschreef in bericht
news:qn********************************@4ax.com...
>We've got a VB2005 program written some time back that we're trying to
do some maintenance on still from within VB2005 but now running on a
Vista Business PC (which I think may be relevant to the problem).

When we go to start up the project from within the VS environment
there are several build errors relating to an inability to find the
ADOX library. I can't remember without hours of reorientation and
checking back whether this was a part of MDAC or should be accessible
from System.Data.OleDB. If it was MDAC then this is something that may
have changed in a Vista environment because IIRC the traditional MDAC
calls no longer work in the same way.

Anyone recognise this problem please and can suggest a fix?

Many thanks
JGD


Oct 1 '08 #3
Many thanks - I'll check this out asap.

JGD
Oct 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different...
3
by: Suhas Vengilat | last post by:
Hi, I am facing a problem accessing SQL Server using WindowsAuthentication. One Sharepoint application development team need a webpart to access one SQL Server Database using a service account...
38
by: kavsak | last post by:
Hi. Not sure that this is the right place to ask but here goes. I have an application based on access97 and VB6 which I need to upgrade. It has to handle up to 20 concurrent users on a Win2k...
7
by: gordy | last post by:
Hey all, I have a fairly simple app which goes out to the web to download data. I want to store this data in a database (1 table, ~8 fields or so). My program is written in VB.net and works...
22
by: b_r | last post by:
Hi, I'm trying to make a simple operation (insert into DB) in VB 2005 and SQL Server. The code is as follows: Dim sConnectionString As String = _ "Data...
8
by: vbDavidC | last post by:
I am wondering if I should use MS Access or SQL server as my database. I have a little experience programming an Access DB with VB6 (DAO/ADO). I am now starting over with VB2005 and will be doing...
13
yolenman
by: yolenman | last post by:
Hello - This is my first posting to this group, so please bear with me. Also note, that while I'm intelligent, databases are not in my field of knowledge. I'm working with a small limousine...
14
by: ApexData | last post by:
I am considering building some distributable commercial applications. For about a year now, I have been using Access2000. This was my first venture into object oriented database development. ...
2
by: a.marmugi | last post by:
I'have a problem. Ado net 2.0 is resulting very slowly. I'vemade a test in which i write 100000 record in a database with VB6 Dao and with VB2005 ADO net 2.0. In the first case the time elapsed for...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.