Could someone please email me back with the correct syntax for running this code using Visual Studio.NET in Infopath. I cannot find any help on this and I am receiving an error.
Dim MySysID As Integer
Dim myADOAdapter As ADOAdapterObject = thisXDocument.DataAdapters.Item(5)
MySysID =
thisXDocument.DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/q:OvertimeLog/@SysID").text
myADOAdapter.Command = "execute dbo.sp_Overtime_Return " + MySysID
myADOAdapter.Query()