Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection - InfoPath Dev
in

InfoPath Dev

Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection

Last post 07-29-2010 01:18 PM by Pinback. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-09-2010 11:06 AM

    Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection

    Hello,

    I am attempting to reference a Sharepoint List, which is a Secondary Data Source, with AdoQueryConnection.

    Dim myAdoQueryConnection As AdoQueryConnection
    myAdoQueryConnection = Me.DataConnections("Room Requests")

    I get the following error: Unable to cast object of type 'Microsoft.Office.InfoPath.Internal.SharepointListQueryConnectionHost' to type 'Microsoft.Office.InfoPath.AdoQueryConnection'.

    Any thoughts? Thanks in advance,

    Pinback

  • 07-09-2010 01:41 PM In reply to

    Re: Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection

    Hi:

    The error is actually telling you what type of connection you have. Here is more info on the SharepointListQueryConnection from MSDN.

    Hilary Stoupa

  • 07-29-2010 01:18 PM In reply to

    Re: Reference Secondary Data Source (Sharepoint List) with AdoQueryConnection

    Thanks Hilary!

     I am looking into the reference above as it looks like that is what I needed. :)

    Thanks again,

     Pinback

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.