First, this is my first post! So here are a few items that may make it apparent why I am trying to take this approach.
I do not have sharepoint and will not be able to get it. I have to move my program off of a web server because we are not allowed to use one. They still want me to make it work and I really do not give up on something. I thought I could use vb script on the form and just use that to update a database on the file share.
Sub XDocument_OnSubmitRequest(eventObj)
Dim db1, dba, rs1, qry, tp1
set db1 = CreateObject("ADODB.Connection")
set rs1 = CreateObject("ADODB.Recordset") dba = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\Snnsvr042\Apps\C1200APPS\databases\DashBoardData.mdb"
db1.Open dba
tp1 = XDocument.DOM.selectSingleNode("my:DocumentNumber").nodeValue
XDocument.UI.Alert(tp1)
qry = "insert into ContractsXML ([Document Number]) Values ('" & docnum & "')"
set rs1 = db1.Execute(qry)
if err.number <> 0 then
eventObj.ReturnStatus = True
else
eventObj.ReturnStatus = False
end if
End Sub
So, this so far seems like it should work similar to other systems I use this approach in. However, I receive an error on the line:
tp1 = XDocument.DOM.selectSingleNode("my:DocumentNumber").nodeValue
The error just says "Object Required" even though the node is correct. Any ideas or other thoughts would be appreciated.