Tools/References is not available

Posted on 2003-03-24
Medium Priority
Last Modified: 2012-05-04
My VB code says
>>>> Public db As Database

But that gives me a
>>>> User-defined type not defined

I've looked around for answers, and they say to go to Tools/References and make sure that DAO is referenced. My problems is that when I go to Tools, "References" is disabled (grayed-out, you know what I mean).

What is wrong? How do I get to the references?

This is a plain Access 2000 system. Is there some kind of option or add-on I need to flip?

Question by:Keeves
  • 2

Author Comment

ID: 8194898
AAAK! I'm sorry! I meant to change the title to "Tools/References is not available"
LVL 28

Accepted Solution

TextReport earned 180 total points
ID: 8194913
Try resetting / stopping the current code that is executing then it should be enabled.

Cheers, Andrew

Author Comment

ID: 8251107
I just now tried stopping the code, and that worked fine. I can't figure out why I didn't think of trying that before.

I had thought that I'm supposed to get an automatic email when someone responds to my question, and I don't think I ever got it. I just figured it out myself, so I came here to cancel the question. Lo and behold, TextReport answered it just a few minutes after I asked it last week. I wish I had seen the answer sooner, but fair is fair, and I am now marking it as answered so that TextReport will get the points. Thanks.

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

When we develop an application in Ms Access 2016 we should also try to protect the queries, macros and table links. I know I may not have a permanent solution but for novice users, they will not manage to break your application. Below is the detail …
What to do if a split doesn't fit? Or a bunch of invoice lines must be rounded while the sum must match a total? It takes a little, but - when done - it is extremely easy to implement.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

600 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