473,401 Members | 2,068 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,401 software developers and data experts.

DAO object types not recognized

I am writing some VBA code in my Access 2000 project,
and the DAO object types don't appear to be recognized.
For example, if I declare "Dim db as database" or
"dim db as DAO.database", an error is raised when I run
the code. Also, the DAO objects to not appear in the
object browser.

I can work around this by declaring all the DAO object
types as generic objects--the DAO methods seem to work
fine. But I would prefer to use the correct DAO object
definitions.

Suggestions?

Thanks
-Mark
Nov 13 '05 #1
7 3052
Have you set your references to MS Access DAO?

Nov 13 '05 #2
"Barry" <ba**********@yahoo.com> wrote:
Have you set your references to MS Access DAO?


Well, since I don't understand how to do that,
I probably have not. How do I go about doing this?
Nov 13 '05 #3

"Mark" <no****@thanksanyway.org> wrote in message
news:h_********************@speakeasy.net...
"Barry" <ba**********@yahoo.com> wrote:
Have you set your references to MS Access DAO?


Well, since I don't understand how to do that,
I probably have not. How do I go about doing this?


Yes, I have looked it up in Google, and I am perusing
the Microsoft Knowledgebase, and I am getting
nowhere.
Nov 13 '05 #4
"Mark" <no****@thanksanyway.org> wrote:

Ah, there we go. . .tools/references on the VBA
editor menu, not on the Access menu.

Thanks for kicking my butt in the right direction.

-Mark
Nov 13 '05 #5
Have you set DAO references?

Nov 13 '05 #6

"Barry" <ba**********@yahoo.com> wrote:
Have you set DAO references?


Yep. The sun has come back out, and the birds
are singing again.
Nov 13 '05 #7
Open a module. The on the menubar click tools then references, Sete
if there is a DAO reference. If not clock on it way down in the
Microsoft section then close.

Nov 13 '05 #8

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

Similar topics

10
by: Jazper Manto | last post by:
hi i want to have a method with a ref object parameter so that i can pass any object by reference and write output in it like code below. the problem is it does not work in c# like i coded it. i...
7
by: Chamith | last post by:
Hi all, I have a method which takes a string parameter. It takes a type name as a string. Inside the method, i want to create an instance of the type which is mentioned in the string parameter. ...
6
by: JD | last post by:
Hi all, Can anyone tell me is there a way to get a list of file types either supported on the server or clients computer and bind it to a drop down list in C# Thanks Jonathan Dixon
7
by: Lucas Tam | last post by:
I'm calling the session object from an inherited page. The page is based off an herited class which outputs XML. Does anyone know why the session object would be nothing? ...
0
by: Sam Samnah | last post by:
Hi everyone. I don't know why but on the outputed page the dialog helper id is not recognized or is "undefined" Can someone tell suggest what I am doing wrong? I've been going over this...
2
by: Sam Samnah | last post by:
I posted this during the weekend and I think it was missed so I am posting it again. I'm in real big trouble with this and need help desperately. Any suggestions will be met with unbelievable...
11
by: Frederick Gotham | last post by:
I'd like to discuss the use of signed integers types where unsigned integers types would suffice. A common example would be: #include <cassert> #include <cstddef> int...
7
by: Arpan | last post by:
The .NET Framework 2.0 documentation states that An Object variable always holds a pointer to the data, never the data itself. Now w.r.t. the following ASP.NET code snippet, can someone please...
5
by: Jim Murphy | last post by:
In creating a C# web service, I am having trouble returning a DataTable object as the result of a web method. I have no problem returning native types like string or int, but cannot return a .NET...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.