The following code finds and opens a document Ok.
However I need to add code to make it loop and search/open others when there is more than one document in the folder.
At the moment the code just opens the first it finds.
Each file in the folder has a common job number as the first part of its filename and the second part of filename would differ.
Also would it be possible to make a list of the documents found as well as opening them.
Path04_ConsAccept = "C:\Quality\ConsAcceptances\"
filename = Dir(Path04_ConsAccept + Me.JobNo & "*")
strFile = Path04_ConsAccept + filename
FollowHyperlink strFile
Any help much appreciated.
However I need to add code to make it loop and search/open others when there is more than one document in the folder.
At the moment the code just opens the first it finds.
Each file in the folder has a common job number as the first part of its filename and the second part of filename would differ.
Also would it be possible to make a list of the documents found as well as opening them.
Path04_ConsAccept = "C:\Quality\ConsAcceptances\"
filename = Dir(Path04_ConsAccept + Me.JobNo & "*")
strFile = Path04_ConsAccept + filename
FollowHyperlink strFile
Any help much appreciated.