Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically naming a folder with records

Status
Not open for further replies.

K3ith

Technical User
Oct 26, 2001
16
0
0
US
Hello,

Could someone advise please,

What I am attempting to achieve is the following:

I have two separate fields, project_id and project_title.

I click on a button within a form and this button will create a folder with the name made up from the two fields identified above, for example [project_]-[project_title] and place the new folder on my c: drive. I know about the command mkdir, but I don’t know how to automatically make the folders name be [project_id]-[project-title].

Once again all advise greatly appreciated.

Thanks.
 
So really all you need to do is find a way to create the folder name. Let us assume a few things:

First, the string holding your mkdir results is myPath.

The form projucr id is called tProjID and and project title is tProjTitle

So now, the entire path with file name would be

Mypath = mypath & me.tprojid & tprojtitle.
Robert Berman
Data Base consultant
Vulcan Software Services
thornmastr@yahoo.com
 
Thanks Robert this set me on the right path to a solution.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top