Consulting

Results 1 to 8 of 8

Thread: Solved: Run Access Macro without Reference

  1. #1
    VBAX Contributor
    Joined
    Jan 2007
    Posts
    146
    Location

    Solved: Run Access Macro without Reference

    Was just wondering if there's any way to run an Access macro without having the "Access Objects blah blah" reference installed? Thanks!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Late bind to Access?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Jan 2007
    Posts
    146
    Location
    but even with late binding don't i need the docmd.runmacro statement?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Yes, but that is not setting a reference.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Contributor
    Joined
    Jan 2007
    Posts
    146
    Location
    i thought the docmd function call was within the Access Objects 11.0 and unusable unless set? I'll give it a try though. Thanks for the tips

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Late binding will connect to the type library, so you still have access to the commands, you just don't set a reference.

    Are you perhaps saying there is no Access on the machine, hence no library?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    VBAX Contributor
    Joined
    Jan 2007
    Posts
    146
    Location
    Quote Originally Posted by xld
    Late binding will connect to the type library, so you still have access to the commands, you just don't set a reference.

    Are you perhaps saying there is no Access on the machine, hence no library?
    bingo! haha Shoulda mentioned that

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Then no chance, you cannot use part of Access if you don't have Access.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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