How to open a URL from MS Access with parameters

后端 未结 2 832
情话喂你
情话喂你 2020-12-16 17:54

I have a basic MS Access application that has a button on a form that should open a webpage with the ID of the Access record as the parameter, but everything I have tried re

2条回答
  •  抹茶落季
    2020-12-16 18:24

    Application.FollowHyperlink is fickle.

    Use either ShellExecute:
    Open an html page in default browser with VBA?

    or

    CreateObject("Shell.Application").Open "http://example.com/index.php?r=controller/action&id=" & Me.ID 
    

    see https://stackoverflow.com/a/18922262/3820271

提交回复
热议问题