Solved

Word VBA project cannot open DB

Posted on 2011-03-23
2
275 Views
Last Modified: 2012-05-11
Good day everyone. I have a project that was working fine. I made some slight alterations (changing path of the access database) and now every time I try to run it, it stops at opening opening the database. Any idea why? The location was changed to a different folder on the same server that is shared (just like where it as located prior). Below is a screenshot.
Error.jpg
0
Comment
Question by:sscal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 300 total points
ID: 35201493
We can't see where the variable Db is defined.

My guess is that you have lost the Reference to the Microsoft DAO object library.
0
 
LVL 1

Author Comment

by:sscal
ID: 35201669
I totally orgot about the libraries. The coding for the project was copied over to a new macro on a different (test) document and I forgot to add the proper libraries. That part is working now but I am getting different error now. Any ideas? This is on a Windows Vista 64bit machine in case that makes a difference.
Error2.jpg
Error3.jpg
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Six Sigma Control Plans

636 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