Consulting

Results 1 to 5 of 5

Thread: Access 2010 - Referencing a 3rd party interoperable provider from VBA code

  1. #1
    VBAX Newbie
    Joined
    Apr 2015
    Posts
    3
    Location

    Access 2010 - Referencing a 3rd party interoperable provider from VBA code

    I've been tasked with writing VBA in Access 2010 to consume web services provided by a 3rd party. Unfortunately these web services are only accessible through a .net client API & I've no idea of how to utilise this within the VBA code.
    The limited documentation I've received from the 3rd party is geared entirely to ASP.net / JAVA development, although it does make a brief reference to an '...interoperable provider which provides support for COM compliant applications such as classic ASP, VB6 and VBScript...'.
    As may be apparent, this is the first time I've worked with Access / VBA, so any help would be greatly appreciated.

  2. #2
    VBAX Expert
    Joined
    Oct 2012
    Posts
    726
    Location
    Go into any module or create a new one.
    Then select tools > references > browse > and add your (.dll ?) file.

    If you press F2 you should see the classes and stuff in the 'project/library' dropdown.

  3. #3
    VBAX Newbie
    Joined
    Apr 2015
    Posts
    3
    Location
    jonh: Thanks, that was the first thing I tried - selecting the .dll throws up an error: 'Can't add a reference to the specified file.'

  4. #4
    VBAX Expert
    Joined
    Oct 2012
    Posts
    726
    Location
    Are there any other files? .tlb?
    If not I don't know. Maybe try accessing the dll direct with DECLARE and see if that works.

    [Public | Private] Declare Sub name Lib "libname" [Alias "aliasname"] [([arglist])]

  5. #5
    VBAX Newbie
    Joined
    Apr 2015
    Posts
    3
    Location
    jonh: Thanks for your help, it turns out the .dlls hadn't installed properly on my dev machine. After much coffee & cursing they are now installed & can be referenced.

Posting Permissions

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