populate textbox with file path

I

Iona

Hi, i've read all the posts on how to populate textbox with file path,
but just can't get it.
I'm using the api to open a file dialog box, this then generates a
messagebox with the file path. So my question is how do I get this file
path and show it in my textbox, not the messagebox. I just don't know
enough programming to do this. any pointers would be very much
appreciate.d

kind regards
iona
 
F

fredg

Hi, i've read all the posts on how to populate textbox with file path,
but just can't get it.
I'm using the api to open a file dialog box, this then generates a
messagebox with the file path. So my question is how do I get this file
path and show it in my textbox, not the messagebox. I just don't know
enough programming to do this. any pointers would be very much
appreciate.d

kind regards
iona

Dim strFolderName As String
strFolderName = BrowseFolder("What Folder you want to select?")
Me!PathName = strFolderName

BrowseFolder() is the API subroutine that opens the dialog for you to
find the folder.
PathName is the text box name on the form (that calls this routine)
that is bound to the field [PathName] in the table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top