Consulting

Results 1 to 2 of 2

Thread: Smart View - Connect to a Shared Database

  1. #1
    VBAX Newbie
    Joined
    May 2018
    Posts
    1
    Location

    Question Smart View - Connect to a Shared Database

    Hello,

    I am fairly new to Oracle Smart View and have been recently assigned to debug an issue with establishing a connection to our National Sales connection. Establishing a connection requires logging in with a username and password.

    How do I properly establish a connection to National Sales and Zoom In on "All Customers" (Manual Input). My code so far is:

    Microsoft Excel Objects
    This Workbook:

    'Opens form to access workbook
    Private Sub Workbook_Open()
    U_login.Show
    End Sub

    Forms
    U_login

    Private Sub CommandButton1_Click()
    U_ID = UID.Value
    PASS_W = PASS_WORD.Value
    Beep
    U_login.Hide

    End Sub

    Module3

    'Deletes previous customer list and adds new based on segment selection
    Sheets("Customer List").Select
    range("I1").Select
    ActiveCell.FormulaR1C1 = "=Location"
    range("H1").Select
    ActiveCell.FormulaR1C1 = "=Segment"
    Columns("A:A").Select
    selection.ClearContents
    range("A3").Select
    ActiveCell.FormulaR1C1 = "All Customers"
    range("A3").Select

    x = HypInvalidateSSO()
    x = HypConnect(Empty, U_ID, PASS_W, "Sales-NationalSales")
    x = HypSetConnAliasTable(Empty, "Default")
    x = HypSetOption(HSV_EXCEL_FORMATTING, 30, "Customer List")
    x = HypZoomIn(Empty, Empty, 1, False)

    Now when I get to HypConnect and I check the connections established it says there are none. When I continue to press F8 the debug message box appears. Please bear with me as I am not that great with VBA. Would be a great learning lesson if someone could show me a code to properly establish connection to a shared database. Thanks!

    -Evan




  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    i dont have oracle installed on my computer.
    just googled and found this.
    maybe you have tried it before.

    http://www.oracle.com/technetwork/mi...be-091531.html
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •