
I have a query that opens a listbox in a form
In the listbox I want to add a doubleclick event that opens a pdf file document with the selected record in it.
The record is in column 1 of the listbox. The path of the pdf files is
I can´t use the FollowHyperlink method of the colecction application due the record in the column is a Key. I am not sure if
FollowHyperlink method can be used in a listbox
Hello everyone
I have a query that opens a listbox in a form
In the listbox I want to add a doubleclick event that opens a pdf document with the selected record in it.
The record is in column 1 of the listbox.
I can´t use the FollowHyperlink method of the colecction application due the record in the column is a Key. I am not sure if
FollowHyperlink method can be used in a listbox
I have been checking codes in the web and I found this:
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
ShellExecute Me.hwnd, "open", "D:\Seb\Desktop\GA-BD\pdf\test.pdf, "", "", 4"
However, I don´t know how to organize the code in a logic way in Sub End Sub. Neither I don´t know if the code is for the
doubleclic event in the list box or a Module. If is for a module I don´t know how to write the code in it
Thank you very much indeed for your help