473,383 Members | 1,980 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,383 software developers and data experts.

Name conflicts with existing module, project...

1
When I go to Tools>References in VBA and try choosing Microsoft DAO 3.6 Object library, I get the following message: "Name conflicts with existing module, project, or object library". When I hit Access help, it tells me that:

1. There is already a module, project, or object library with this name referenced in this project, or
2. You attempted to add a reference to a project or object library whose file name (without an extension) is the same as the name of one of the current project's modules.

This has me mesmerized because neither my module (module1), nor my project, nor the object library has any name that should conflict with adding this library and to use DAO I need this reference. Any ideas why this is happening? Thanks for your help.
Sep 6 '13 #1
2 7624
jimatqsi
1,271 Expert 1GB
Check this out: http://office.microsoft.com/en-us/vi...080353798.aspx

You attempted to add a reference to a project or object library whose file name (without an extension) is the same as the name of one of the current project's modules. Change either the module name or the name of the file that could not be added.

I don't think it matters what the names of your modules are (except for class modules). You could most likely just change the name of the conflicting module and never miss a beat. Note that when you click on the reference you want, the path and name of the file is shown elsewhere in that window. That should point you immediately to the problem module name.

Jim
Sep 6 '13 #2
zmbd
5,501 Expert Mod 4TB
ABSOLUTELY DO NOT CHANGE THE NAME OF A REFERENCE LIBRARY FILE!
This is bogus advice from MicroSoft

Doing so will more than likely break any other program referring to that library and may also result in other programs within the Office suite you are using to malfunction as well.

One of my fellow employees working on a project ran into this same error several years ago, and did just that on his PC because he didn't want to change the module name. Locked him out of Access, Excel, the Sharepoint server, the ODBC connection to the SQL-Server wouldn't authenticate to the Access Front end once we named the file back to the original. In short, we ended up having IT-Support wipe his drive and re-image from the enterprise master (thankfully, the server makes backups of the work document directories!)
Sep 7 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Andreas Neudecker | last post by:
Hi. I know you can read the filename of a program as sys.argv. But what about modules? Is there a similar way to find out the file name of a module (called by some other module or program) from...
0
by: plb | last post by:
All: I am struggling with an import problem... In my package, myapp, there is a module called logging. This module, naturally, imports the standard library module logging. However, when I...
15
by: torched_smurf | last post by:
I have a java program in a package called 'cmd'. This of course conflicts with the builtin python package of the same name. The thing is, I need to be able to import from both of these packages in...
12
by: christopherlmarshall | last post by:
Suppose you want to write a subclass of some existing class you are importing from a module you didn't write and that you don't want to study the internals of, and you want to define a data member...
15
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. How can one get the name of the current project and the current class? This is the situation. Suppose there is a project called "P1".
0
by: KAMALKV1 | last post by:
Suppose we have to change one of the directory name of asp.net project how we do it. Presently I can change in virtual directory and physical files but get compilation errors Thanks kamal
3
by: Joe Cletcher | last post by:
It must be simple, but how do I open an existing MS Project file? I've tried Dim Proj as MSProject.Project Proj = CreateObject("MSProject.Application")...
13
by: bobueland | last post by:
I'm a newbie experimenting with Python. I want to incrementally develop a module called 'circle'. The problem is now that the file name is used for two purposes. To keep track of the version number...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.