T
twister007
Guest
Hello,
I have a form with an actionbutton:
Private Sub pdf_Click()
Dim mod_ID$, stAppName$, stPathName$
art = Me!art_Art_ID
stAppName = "F:\apps\Adobe\AcroRd32.exe "
stPathName = "F:\data\ict\gen\" & "*" & art & "*" & ".pdf"
If Dir(stPathName) <> "" Then
Call Shell(stAppName & stPathName, 1)
Else
MsgBox stPathName & " Is not there"
End If
End Sub
This button opens a pdf file if exists in the directory F:\data\ict\gen . For so far this works fine. But how can I search for pdf files that are located in subdirs that exists in the directory F:\data\ict\gen ?
Thanks!
I have a form with an actionbutton:
Private Sub pdf_Click()
Dim mod_ID$, stAppName$, stPathName$
art = Me!art_Art_ID
stAppName = "F:\apps\Adobe\AcroRd32.exe "
stPathName = "F:\data\ict\gen\" & "*" & art & "*" & ".pdf"
If Dir(stPathName) <> "" Then
Call Shell(stAppName & stPathName, 1)
Else
MsgBox stPathName & " Is not there"
End If
End Sub
This button opens a pdf file if exists in the directory F:\data\ict\gen . For so far this works fine. But how can I search for pdf files that are located in subdirs that exists in the directory F:\data\ict\gen ?
Thanks!