473,508 Members | 2,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Programatically create a file folder

Can one programatically create a file folder which has the same name
as a key field, using a command button?

Or,

Can there be a a command button which opens up a directory tree to a
specified location. I'm thinking this is a visual basic-related
question?

Why? I have a client tracking database. When the client's record is
opened before me on my form, wouldn't it be great to click a button
and then be able to drag items such as custom-made letters or mp3
dictation recordings to a folder unique to that specific client? It's
true, doing it manually takes but a few seconds, but if your software
is full of time-savers like this, it can turn out to be a real
productivity-booster.

Now, I feel cheap asking someone else to figure this out for me, but
it's such a great idea that maybe whoever answers this question will
be able to use this idea too. I lack coding experience, but I have
terrific ideas for Access and productivity (listening Microsoft?).

Thank you all for putting up with me!
Jun 3 '06 #1
3 17236
The Woo wrote:
Can one programatically create a file folder which has the same name
as a key field, using a command button?

Or,

Can there be a a command button which opens up a directory tree to a
specified location. I'm thinking this is a visual basic-related
question?

Why? I have a client tracking database. When the client's record is
opened before me on my form, wouldn't it be great to click a button
and then be able to drag items such as custom-made letters or mp3
dictation recordings to a folder unique to that specific client? It's
true, doing it manually takes but a few seconds, but if your software
is full of time-savers like this, it can turn out to be a real
productivity-booster.

Now, I feel cheap asking someone else to figure this out for me, but
it's such a great idea that maybe whoever answers this question will
be able to use this idea too. I lack coding experience, but I have
terrific ideas for Access and productivity (listening Microsoft?).


Yes. Use the "MkDir" command perhaps as so:

Function CreateDirIfRequired(strMyPath As String)
If Len(Dir(strMyPath, vbDirectory)) = 0 Then
MkDir strMyPath
End If
End Function

--
'---------------
'John Mishefske
'---------------
Jun 3 '06 #2
If you create a Hyperlink field in your table, you can link to any document
you wish. For more info, see:
Introduction to Hyperlink fields
at:
http://allenbrowne.com/casu-09.html

You can use FollowHyperlink in VBA to open the folder. For example, if you
have a folder named:
C:\Data\Clients\1001
where 1001 is the client number, you can use:
Dim strFolder As String
strFolder = "C:\Data\Clients\" & [ClientNumber]
FollowHyperlink strFolder

In Access 2007, you will be able to create an Attachments field, and attach
as many files as you wish to a client record.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"The Woo" <***.www.co.> wrote in message
news:ii********************************@4ax.com...
Can one programatically create a file folder which has the same name
as a key field, using a command button?

Or,

Can there be a a command button which opens up a directory tree to a
specified location. I'm thinking this is a visual basic-related
question?

Why? I have a client tracking database. When the client's record is
opened before me on my form, wouldn't it be great to click a button
and then be able to drag items such as custom-made letters or mp3
dictation recordings to a folder unique to that specific client? It's
true, doing it manually takes but a few seconds, but if your software
is full of time-savers like this, it can turn out to be a real
productivity-booster.

Now, I feel cheap asking someone else to figure this out for me, but
it's such a great idea that maybe whoever answers this question will
be able to use this idea too. I lack coding experience, but I have
terrific ideas for Access and productivity (listening Microsoft?).

Thank you all for putting up with me!

Jun 3 '06 #3
On Sat, 03 Jun 2006 03:49:15 -0400, The Woo <***.www.co.> wrote:

Sheer genius. People such as you move technology forward as much and
perhaps moreso than the creators of the original software. I thank
you.
Jun 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5396
by: RWC | last post by:
Hi Folks, I'm looking for a way to determine if the client machine has access installed and if so, what version. The reason I need this is to determine (programatically) if the Access Runtime...
5
11008
by: David Webb | last post by:
The problem started when the Working Folder for a project was somehow set to the folder of another project. I set the correct working folder in VSS and deleted the .vbproj files that had been...
3
10425
by: gudia | last post by:
I want to Programatically generate Access reports in the pdf format using some tool and then email them to people in the same code. Right now I am trying to do this with pdf995 using VBA (emailing...
1
7090
by: Ramón | last post by:
why am I not allowed to intanstiate a new task item? TaskItem task_DC = new TaskItemClass(); This is the erro I get when building: error CS0122:...
0
1822
by: jason | last post by:
I googled a lot, couldn't find a good solution. Any help is greatly appreciated. What I want to do is: Given a web page in a running IE browser , i want to save an image in this web page to...
0
1504
by: Paul.Hawkes | last post by:
All I'm having trouble getting the following to work. I have been able to download and delete a file with the same credentials and similar code, but when I try upload the file. I get a returned...
1
3419
by: vijay | last post by:
HI ALL, How to create excel chart programatically using C#.net 2005. I have created an excel file by using Gembox.Spreadsheet component.Now i want to add excel Chart to this...
3
4216
by: =?Utf-8?B?UGF1bA==?= | last post by:
I need to programatically upload a text file to a web server using the HTTPWebRequest object within .Net 2.0. So far, I have determined that: - I need a HTTP content-type of...
1
5526
by: jags | last post by:
HI All I was trying to create Document librray programatically in a Sharepoint Site and is not working for me.I was trying to implement this as an Event Handler. The aim of the code is to create...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3195
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1558
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.