That doesn't really help all that much, sorry :-( There are really only two ways to 'open' a folder. The two I mentioned above...
If you want the person to be able to browse through and open a file contained in that folder then you need the Open File Dialog box.
Otherwise, if you just want them to view the contents of the folder, (which includes unrestricted ability to interact with files, including opening, etc...) then you need to call the Windows Explorer.
Here are instructions for how to implement the File Dialog box control, includes full code that you should need for opening whatever type of file that your users wish.
Regards,
Scott
ok, thanks, I have decided to go with the windows explorer to open the folder (since its o a network drive, i figure what hey , they can see there files , as aposed to letting the browse for the dir)
I now have a follow up question, This db reads emails and downloads the attachments to a folder, while commenting at the end of the email what the file(s) are (this is in a private sub), when opening the folder, how can I have only the file(s) download for that email displayed?
the line in the private sub to comment attachment(s) downloaded and location is :
-
Me.Body = Me.Body & vbCrLf & locmsg & savefile & FileName & SeqNum & "." & Extension & vbNewLine
-
Me.[Body] is is textbox that contains the body of the email,
locmsg is just text to precede file location
fileName is the the name of the file
seqNum is the sequential # that is concatinated to the file name
This code is on the form that pulls the email from outlook
the form the end user uses to view this information does not contain this code because they are just pulling it from the DB table.
and help?
Thanx
ps. Im guessing the line to find there files would be somthing like :
-
Len ( FileName&SeqNum) = 1 Then
-
.show
-
if you are wondering why the drive change it's simply because the process is the same but end result is for a multi user DB