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