?
Solved

Excel 2010 VB problem after server move

Posted on 2012-09-10
1
Medium Priority
?
161 Views
Last Modified: 2012-09-17
Our users had some excel spread sheets that had a field pointing towards a database on a server that was recently retired (of course we had no idea this even existed) and I'm trying to point it towards the location of the new server, I've verified that the file is there in the path specified but the field is still failing when someone tries to type any info in it.  When I run the debugger this is what shows up:
cn.Provider = "Microsoft.Jet.OLEDB.4.0"
cn.ConnectionString = "Data Source=\\Cargo-fs-02\Public\ProdData\ProdData.mdb"
cn.Open

It's saying that failure is at the cn.Open command.  What step am I missing here?
0
Comment
Question by:adml_shake
1 Comment
 
LVL 13

Accepted Solution

by:
Ryan earned 1000 total points
ID: 38384400
default user and pw?

cn.ConnectionString = "Data Source=\\Cargo-fs-02\Public\ProdData\ProdData.mdb;Provider=Microsoft.Jet.OLEDB.4.0;User Id=admin;Password=;"

reference
http://www.connectionstrings.com/access
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question