<form id="hbx9t"></form>

<noframes id="hbx9t">

    <em id="hbx9t"><span id="hbx9t"></span></em>

        <noframes id="hbx9t"><address id="hbx9t"><th id="hbx9t"><progress id="hbx9t"></progress></th></address>
        office交流網--QQ交流群號

        Access培訓群:792054000         Excel免費交流群群:686050929          Outlook交流群:221378704    

        Word交流群:218156588             PPT交流群:324131555

        access用超鏈接打開本地文件

        2021-01-01 08:00:00
        tmtony8
        原創
        16929

        在應用程序中, 我們有可能需要打開其他應用程序,比如調用系統的計算器,也有打開指定的文件編輯的需求;

        access對于此類操作的方法還是很多的,這里介紹用超鏈接打開指定文件


        代碼如下

        Dim fdg As Office.FileDialog
            Dim filePath As String
            Set fdg= Application.FileDialog(msoFileDialogOpen)
            With fdg
               .Title = "選擇想要打開的文件"
               .AllowMultiSelect = False
               .Show
            End With
            filePath = fdg.SelectedItems.Item(1) '選擇文件的路徑
            Me.打開文件.Hyperlink.Address = filePath '超鏈接打開文件


          分享