|
|
@@ -73,7 +73,7 @@ Dim JCode:JCode = Left(Filename,5) |
|
|
|
Dim oConn:Set oConn = WScript.CreateObject("ADODB.Connection") |
|
|
|
oConn.ConnectionString = ConnectionString |
|
|
|
oConn.Open |
|
|
|
oConn.Execute("Insert Into Kit ([JobNumber], [Jcode], [CreatedOn]) VALUES ('" & JobNumber & "','" & JCode & "',#" & Now() & "#);") |
|
|
|
oConn.Execute("Insert Into Kit ([JobNumber], [Jcode], [CreatedOn], [JobType]) VALUES ('" & JobNumber & "','" & JCode & "',#" & Now() & "#,'Purple Envelopes');") |
|
|
|
Dim rs : set rs = oConn.Execute("Select TOP 1 ID from Kit ORDER BY ID DESC") |
|
|
|
Dim kitId : kitId = rs("ID").value |
|
|
|
rs.close |
|
|
|