In infopath saving to a SQL database using a stored procedure

S

SDecou

using this code behind the click event of a button I am receiving an error.
Does anyone see anything wrong with this code?

Dim CLEmpID
Dim CLClientMatter
CLEmpID=XDocument.DOM.selectSingleNode("//dfs:myFields//dfs:dataFields//d:OverTime//@EmpID").text
CLClientMatter=XDocument.DOM.selectSingleNode("//dfs:myFields//dfs:dataFields//d:OverTime//@ClientMatterNoBill").text

in vbscript what is the correct syntax when using the queryadapter?
XDocument.QueryAdapter.Command = "execute dbo.sp_insert_Overtime" clempid +
"'"
XDocument.Query()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top