Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2020
    Location
    Canada
    Posts
    2

    Lightbulb WebBrowser Control - open a local Access form from hyperlink


    Hello everyone, I created some HTML pages (simple ones) and I am looking into this: one of the HTML pages refers to form in the Access database. I like to open that form when user clicks on the hyperlink. Is that even possible? I am looking into some JavaScript but so far I had no luck. Anyone?

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    The only thought that comes to mind is using the "/cmd" command line switch and testing that in code that runs when the db opens.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Database is open and HTML pages are viewed in WebBrowserControl?

    Are there multiple links on this HTML page?

    Can you provide your HTML page code?

    Command line switches for Access https://utteraccess.com/wiki/Command-Line_Switches
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Join Date
    Jul 2020
    Location
    Canada
    Posts
    2
    The answer was right in front of my face! BeforeNavigate2. In the html hyperlink anchor I setup the page I would like to display: href="onteck.html". Then when it triggers the event then I validate and launch the Access form. I still have to come up with a mechanism to determine when I want to display another html page and when I want to load a page or report.

    Thank you for your willingness to help!

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,954
    You may not be aware that it is possible to create a shortcut to any database object including a form or report.
    So you could use a shortcut to the form in your hyperlink.
    The database will then open direct to that form even if its not the startup form.

    Hope that helps
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Email Body Hyperlink to Open Access Form
    By AMJADJ in forum Programming
    Replies: 6
    Last Post: 08-26-2018, 07:34 AM
  2. WebBrowser control requery
    By Historypaul in forum Forms
    Replies: 4
    Last Post: 11-12-2014, 09:09 PM
  3. WebBrowser Control to use Chrome?
    By kdbailey in forum Access
    Replies: 2
    Last Post: 07-15-2014, 11:30 AM
  4. sizing a url within a webbrowser control
    By Kirsti in forum Programming
    Replies: 4
    Last Post: 11-06-2012, 06:10 PM
  5. Landscape Orientation-WebBrowser Control
    By mwolfod in forum Forms
    Replies: 0
    Last Post: 04-11-2011, 08:32 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums