Access VBA with Business Objects Prompt

upser013

New Member
Joined
Apr 18, 2013
Messages
1
Hi All,
I am using Access 2007 VBA to open Business Objects XI and run multiple reports. I have accomplished this successfully, however all BO reports has a user input required prompt. This prompt will be the same throughout all BO reports, so I would like to have a user input the date in Access and call that input when required in the BO report.
Below is my code that opens a user input box for the date in access, opens Business Objects, calls up one BO report, logs in with a specified username and password, and I need to figure out how to use sDate when prompted in Business Objects :
Sub Run_Business_Objects()
Dim BoApp As Object
Dim sDate As String

sDate = InputBox(Prompt:="Please Enter the Last Business Day (MM/DD/YYYY).")

Set BoApp = CreateObject("BusinessObjects.application")
With BoApp
.Visible = True
.LoginAs "username", "password", , "system"
.Documents.Open ("C:\Documents and Settings...\.rep")
\\\\Call Variable Here????\\\\\\
End With
End Sub
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top