PC Review


Reply
Thread Tools Rate Thread

Creating automatically different export paths

 
 
GeoHunter
Guest
Posts: n/a
 
      4th Jul 2004
I run a report for multiple customers - for each customer
it's own report. In my proccess after the report is
generated it is exported to a specific location and after
it is e-amiled as an attachment. Is there possible to
create on the fly a new path where to save the reports?
Let's to say for customer AA the path will be
C:\MyDocument\AA, for cust BB to save in
C:\MyDocument\BB...my question if the folder AA or BB can
be created through the proccess not before I run the
reports?

thx

 
Reply With Quote
 
 
 
 
Ken Snell
Guest
Posts: n/a
 
      4th Jul 2004
VBA contains the command MkDir which allows you to create a new directory.

--

Ken Snell
<MS ACCESS MVP>

"GeoHunter" <(E-Mail Removed)> wrote in message
news:268fa01c4617c$9f852a80$(E-Mail Removed)...
> I run a report for multiple customers - for each customer
> it's own report. In my proccess after the report is
> generated it is exported to a specific location and after
> it is e-amiled as an attachment. Is there possible to
> create on the fly a new path where to save the reports?
> Let's to say for customer AA the path will be
> C:\MyDocument\AA, for cust BB to save in
> C:\MyDocument\BB...my question if the folder AA or BB can
> be created through the proccess not before I run the
> reports?
>
> thx
>



 
Reply With Quote
 
GeoHunter
Guest
Posts: n/a
 
      4th Jul 2004
Ken, can you please show me the line of code, I'm sot very
good in code.

thx

>-----Original Message-----
>VBA contains the command MkDir which allows you to create

a new directory.
>
>--
>
> Ken Snell
><MS ACCESS MVP>
>
>"GeoHunter" <(E-Mail Removed)> wrote

in message
>news:268fa01c4617c$9f852a80$(E-Mail Removed)...
>> I run a report for multiple customers - for each

customer
>> it's own report. In my proccess after the report is
>> generated it is exported to a specific location and

after
>> it is e-amiled as an attachment. Is there possible to
>> create on the fly a new path where to save the reports?
>> Let's to say for customer AA the path will be
>> C:\MyDocument\AA, for cust BB to save in
>> C:\MyDocument\BB...my question if the folder AA or BB

can
>> be created through the proccess not before I run the
>> reports?
>>
>> thx
>>

>
>
>.
>

 
Reply With Quote
 
Ken Snell
Guest
Posts: n/a
 
      4th Jul 2004
If Dir("C:\MyDocument\AA", vbDirectory) = "" Then MkDir "C:\MyDocument\AA"

--

Ken Snell
<MS ACCESS MVP>

"GeoHunter" <(E-Mail Removed)> wrote in message
news:26a4201c461bb$1362b0b0$(E-Mail Removed)...
> Ken, can you please show me the line of code, I'm sot very
> good in code.
>
> thx
>
> >-----Original Message-----
> >VBA contains the command MkDir which allows you to create

> a new directory.
> >
> >--
> >
> > Ken Snell
> ><MS ACCESS MVP>
> >
> >"GeoHunter" <(E-Mail Removed)> wrote

> in message
> >news:268fa01c4617c$9f852a80$(E-Mail Removed)...
> >> I run a report for multiple customers - for each

> customer
> >> it's own report. In my proccess after the report is
> >> generated it is exported to a specific location and

> after
> >> it is e-amiled as an attachment. Is there possible to
> >> create on the fly a new path where to save the reports?
> >> Let's to say for customer AA the path will be
> >> C:\MyDocument\AA, for cust BB to save in
> >> C:\MyDocument\BB...my question if the folder AA or BB

> can
> >> be created through the proccess not before I run the
> >> reports?
> >>
> >> thx
> >>

> >
> >
> >.
> >



 
Reply With Quote
 
GeoHunter
Guest
Posts: n/a
 
      4th Jul 2004
Thaks a bunch!

>-----Original Message-----
>If Dir("C:\MyDocument\AA", vbDirectory) = "" Then

MkDir "C:\MyDocument\AA"
>
>--
>
> Ken Snell
><MS ACCESS MVP>
>
>"GeoHunter" <(E-Mail Removed)> wrote

in message
>news:26a4201c461bb$1362b0b0$(E-Mail Removed)...
>> Ken, can you please show me the line of code, I'm sot

very
>> good in code.
>>
>> thx
>>
>> >-----Original Message-----
>> >VBA contains the command MkDir which allows you to

create
>> a new directory.
>> >
>> >--
>> >
>> > Ken Snell
>> ><MS ACCESS MVP>
>> >
>> >"GeoHunter" <(E-Mail Removed)> wrote

>> in message
>> >news:268fa01c4617c$9f852a80$(E-Mail Removed)...
>> >> I run a report for multiple customers - for each

>> customer
>> >> it's own report. In my proccess after the report is
>> >> generated it is exported to a specific location and

>> after
>> >> it is e-amiled as an attachment. Is there possible to
>> >> create on the fly a new path where to save the

reports?
>> >> Let's to say for customer AA the path will be
>> >> C:\MyDocument\AA, for cust BB to save in
>> >> C:\MyDocument\BB...my question if the folder AA or BB

>> can
>> >> be created through the proccess not before I run the
>> >> reports?
>> >>
>> >> thx
>> >>
>> >
>> >
>> >.
>> >

>
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can we export to a text file to the desktop but using relative paths? [A03] Douglas J. Steele Microsoft Access Getting Started 7 21st Aug 2009 12:59 PM
Looking for function to resolve VirtualStore paths to physical paths Scott Windows Vista General Discussion 9 8th Jul 2007 08:07 PM
Looking for function to resolve VirtualStore paths to physical paths Scott Windows Vista File Management 9 8th Jul 2007 08:07 PM
Creating continuous motion paths =?Utf-8?B?TWlzcyBFYXJseXdpbmU=?= Microsoft Powerpoint 5 8th Dec 2004 04:11 PM
Creating automatically different export paths GeoHunter Microsoft Access Reports 1 4th Jul 2004 05:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 AM.