Sub irb_data_update(boname As String, bopwd As String)
Dim BoApp As busobj.Application
Dim BODoc As busobj.Document
Dim BORep As busobj.Report
Dim boDP As busobj.DataProvider
Set BoApp = CreateObject("busobj.Application")
With BoApp
.LoginAs boname, bopwd, False
.Visible = True
.Documents.Open (DumpPath & "ledger_irb.rep")
With .ActiveDocument
.Refresh
End With
End With
Set BODoc = BoApp.ActiveDocument
Set boDP = BODoc.DataProviders.Item(1)
|