Results 1 to 7 of 7

Thread: URL from Access Database

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    225

    URL from Access Database

    Does anyone know how to access a webpage by just clicking button on a form in Access. I am creating a file for upload to the site and I want to be able to go directly to the site once the file is created.

    Thanks

  2. #2
    Fanatic Member Gaffer's Avatar
    Join Date
    Nov 2000
    Location
    London
    Posts
    828
    Insert...Hyperlink

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    225

    GAFFER

    How do I do this in the command button click event?

  4. #4
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    VB Code:
    1. Dim lReturn As Long
    2.      lReturn = ShellExecute(hwnd, "open", "http://w3.iapps.tdbank.ca/nso/order.nsf", vbNull, vbNull, 1)


    Try that.

  5. #5
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    Use your own URL though.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2002
    Posts
    225

    To EPHESIANS

    I tried your code but I get an error saying that the method isn't found.

    Any clues?

    I was thinking of using a webbrowser object, I have no idea if that will even work in VBA.

  7. #7
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    424
    My apologies. You need to declare this first.

    VB Code:
    1. Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, _
    2. ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

    Then your method will be found.

Posting Permissions

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



Click Here to Expand Forum to Full Width