Microsoft Access 14.0 Object Library

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi,
I have an Access Macro.
In this macro, Microsoft Access 14.0 Object Library is ticked in Reference.
I want to un-tick this reference.
However while doing so I get pop-up as ‘Can’t remove control or reference; in use’.

How do I find out what objects in my macro are related to this reference.
I commented out few such as ‘Dim oRdc As Recordset’ and 'Dim rsXML As DAO.Recordset’.
However this is taking time and am not also sure if this is the correct method.

At the end, I should be able to un-tick Microsoft Access 14.0 Object Library reference.
How do I do this.
Can anyone please help me in this.
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,188
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
Why would you attempt to uncheck an Access reference when you are working in Access?
 

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi RoryA sir, I wanted to check which objects in the macro are related to Access.
Macro is written by someone else and I am required to edit this.

That is why I am trying to know which objects are related to Access.
Thanks for the help. )
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
34,188
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
To be honest, if you can't tell by reading the code, you probably shouldn't be editing it. At any rate, you cannot remove a reference to the host application.
 

BizBoy

Board Regular
Joined
Jul 26, 2012
Messages
118
Hi RoryA sir, thanks for the help.
I am trying to guess the reference by reading the code.
But I was not sure if this is the correct way to do.

Pardon my ignorance, do you mean to say, I can not remove reference to Access Library from Access file at all.
I removed entire code from the file still am not able to un-tick the reference.

However I was able to un-tick the OLE Automation reference irrespective of the code.
You are correct sir, now I understood. We can not remove this reference.
 
Last edited:

Micron

Well-known Member
Joined
Jun 3, 2015
Messages
1,742
You would need much more familiarity with the Access Object Model than what you seem to have. That can only come through study and learning. There is a M$ web page for the object model, but it's not really study material as much as it is reference material. Unfortunately there are no shortcuts to this. The object model as it relates to your project is governed by the References it contains and the model can be browsed via the VB editor (toolbar button or F2).

If you're going to play around, you'd best have one or more backup copies of your db(s). BTW, in some forums, help with macros is a bit limited because experienced developers don't use them as a rule. Not sure about this forum.
 

Forum statistics

Threads
1,078,442
Messages
5,340,305
Members
399,366
Latest member
ahmed elsaid

Some videos you may like

This Week's Hot Topics

  • Problem with Radio Button's format control
    I am creating an employee evaluation template (a sample is below) Column A is the category Column B, C D, E and F will be ratings (unacceptable...
  • Last Display on userform to a Listbox
    [CODE=vba] lstdisplay.ColumnCount = 15 lstdisplay.RowSource = "A1:O600000" [/CODE] So when i do this it Displays everything on the sheet i am...
  • Rename and move files to a new location
    Dear all, I have an excel file with the following information. The actual file name is at column A but i want to rename it using the following...
  • Help with True/False Formula
    Hello! Am stumped how to fix this formula, in which my result returns 'True', but it should return False. =IF(AG2=True...
  • Clear extra characters from a provided range of cells
    Dear All, I have following code which gives me desired output to remove extra characters from a provided range. But it takes too much time when...
  • Help with Current and highest streaks
    Hi there, I've just joined the forum and this is my first post. I've already spent quite a bit of time searching the net and this forum for a...
Top