Results 1 to 7 of 7

Thread: Microsoft Access 14.0 Object Library

  1. #1
    Board Regular
    Join Date
    Jul 2012
    Location
    India
    Posts
    104
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Microsoft Access 14.0 Object Library

    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.

  2. #2
    MrExcel MVP
    Moderator
    RoryA's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    33,990
    Post Thanks / Like
    Mentioned
    53 Post(s)
    Tagged
    6 Thread(s)

    Default Re: Microsoft Access 14.0 Object Library

    Why would you attempt to uncheck an Access reference when you are working in Access?

  3. #3
    Board Regular
    Join Date
    Jul 2012
    Location
    India
    Posts
    104
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Microsoft Access 14.0 Object Library

    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. )

  4. #4
    MrExcel MVP
    Moderator
    RoryA's Avatar
    Join Date
    May 2008
    Location
    UK
    Posts
    33,990
    Post Thanks / Like
    Mentioned
    53 Post(s)
    Tagged
    6 Thread(s)

    Default Re: Microsoft Access 14.0 Object Library

    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.

  5. #5
    Board Regular
    Join Date
    Jul 2012
    Location
    India
    Posts
    104
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Microsoft Access 14.0 Object Library

    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 by BizBoy; Oct 16th, 2019 at 12:12 PM.

  6. #6
    Board Regular
    Join Date
    Jun 2015
    Location
    Ontario, Canada
    Posts
    1,727
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Microsoft Access 14.0 Object Library

    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.
    Tips for posting problems:
    1) "doesn't work" doesn't help. Post error message text/numbers and/or state what's happening.
    2) if posting code or sql, use code tags; specify on which code line errors occur, if applicable
    3) try to be specific; assume we know nothing about your issue - because we don't!

    Make all suggested changes in copies of your database or to its objects.

    "1 out of 1010 people understand binary. The other 1001 don't."

  7. #7
    Board Regular
    Join Date
    Jul 2012
    Location
    India
    Posts
    104
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Microsoft Access 14.0 Object Library

    Hi Micron sir, thanks for the help.
    Have a nice day ahead.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •