Microsoft Access 14.0 Object Library

BizBoy

Board Regular
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.
 

BizBoy

Board Regular
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
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
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
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.
 

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Macro to copy values across rows and transposing them and add the user id
    [FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]Hi,[/COLOR][/SIZE][/FONT] [FONT=Times New...
Top