Hi there,
I'm working on expanding a VBA routine, which creates a new PO for Sage ERP 100 5.00.2, to bring up a printing UI to let users electrically deliver the newly created PO. But I'm stuck trying to resolve a series of errors thrown by Session and rpt obj, and i need your help.
'Variable declaration and error traps omitted
Set oScript = CreateObject("ProvideX.Script")
'Load Pvxcom
oScript.Init (PathHome)
Set oSS = oScript.NewObject("SY_Session")
retVal = oSS.nSetUser(strUser, strPWD)
retVal = oSS.nSetCompany("TST")
retVal = oSS.nSetModule("P/O")
retVal = oSS.nSetDate("P/O", "20150828")
retVal = oSS.nSetProgram(oSS.nLookupTask("PO_PurchaseOrderPrinting_ui"))
Set oRpt = oScript.NewObject("PO_PurchaseOrderPrinting_rpt", oSS)
The last line with NewObject method returns an error "Module J/C is not on file", and I can't figure out how that can be. Proceeding with the rest of the code, which assigns a PoNo and other form related stuff, results in Data Not Selected error. So I'm assuming the aforementioned error has a part in it. How can this be?
Thanks in advance for your input!
Ken