selected value and have it stored in in the box above it.
Right now, the box where I want the network location value to appear reads:
'=BrowseFolder([<<szDialogTitle>>])'
Kassy
The API call can look scary if you have not worked with them before.
Everthing before the line:
Public Function BrowseFolder(
needs to go at the top of your module - with the Option statements.
The function can go anywhere in the module: top is fine.
The Click event procedure of your command button then calls the function,
and uses the return value, e.g.:
Private Sub Command0_Click()
Dim strFolder As String
strFolder = BrowseFolder("Where is it?")
MsgBox "You chose " & strFolder
End Sub
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Great. Thanks for the link. Lot's of nice tools in there.
I'll work on figuring out how to attach the code to the command button
now.
I've got the button in place, I right-click on it and goto code builder,
and
then I paste the code under the 'Private Sub Command33_Click()', but
when
I
run it I get errors.
I have the 'Microsoft Office 9.0 Object Library' enabled as noted. Not
sure
which way to go now.
Kassy.
The standard File Open dialog in Windows allows you to navigate to
Network
Neighbourhood and choose a folder.
The code to do that is in this link:
http://www.mvps.org/access/api/api0002.htm
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Hello!
I want to be able to enter a network folder location, by clicking
through
a
directory tree and selecting the folder I want. I currently have
the
"Network Location" column hyperlinked, but typing in a network
location
that's over 7 folders deep is getting old fast.