1a63f Incrementing Output Files
Sign Up |  Live StatsLive Stats    Articles 37,344| Comments 177,348| Members 19,420, Newest Talia| Online 422
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Incrementing Output Files

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
How can I convert ms access2000 files back to ms access97 files ? Lost In Cyberspace Information Technology 1 28-Jul-2006 08:37 AM
Re: Create Directory / Copy Files / Delete Files Zadok @ Port of Seattle Information Technology 1 28-Jul-2006 08:19 AM
Output to Spreadsheet millardgroups@gmail.com Information Technology 5 28-Jul-2006 08:14 AM
incrementing a field value from another table entry Ladderman Information Technology 3 28-Jul-2006 08:03 AM
Output To MS-DOS Kimberly Franklin Information Technology 1 30-Oct-2005 12:47 PM


Tags
incrementing, output, files
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:14 AM
Gina's Avatar Gina
Guest
 
Posts: n/a
   
   
Incrementing Output Files

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Everyday I import a table into Access (an exported query from People Soft).
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10602-incrementing-output-files.html
The data is manipulated and then a report is exported to an Excel file. I
have a Macro performing this with a push of a button on a form that is on the
Start Up menu. Because it is automated, the name of the exported report is
the same each day and is therefore overwritting the prior days report.

My question: Is there a way to increment the name of the report to export.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
I know that People Soft and some others have this process of incrementing the
name. I hope I have given enough details.

Thanks.
--
Gina


Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:14 AM
xRoachx's Avatar xRoachx
Guest
 
Posts: n/a
   
   
RE: Incrementing Output Files

Hi Gina -- If the report is run once each day, you can concatenate the name
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
and the date to form the name of the file. This is probably the easiest
option. If you need more specific help, post your code you use to export
your report.

"Gina" wrote:

> Everyday I import a table into Access (an exported query from People Soft).
> The data is manipulated and then a report is exported to an Excel file. I
> have a Macro performing this with a push of a button on a form that is on the
> Start Up menu. Because it is automated, the name of the exported report is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
> the same each day and is therefore overwritting the prior days report.
>
> My question: Is there a way to increment the name of the report to export.
> I know that People Soft and some others have this process of incrementing the
> name. I hope I have given enough details.
>
> Thanks.
> --
> Gina

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:14 AM
Gina's Avatar Gina
Guest
 
Posts: n/a
   
   
RE: Incrementing Output Files

xRoachx,

Thank you for your reponse.

Although, I have used some VB Scripting, I am not a programmer (learning a
little more each day) and in this particular case - I have not utilized any
VB scripting.

This database's sole purpose is to import a single table overwritting the
prior one, from that table a report is generated and exported using the
following path.

F:\Collections\Collectors\Payment History Reports\Payment History.xls

I guess I was thinking that something could be written within the path (some
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
coding) that would tell it to increment. I suppose I'm way off, however, if
you feel that VB scripting will accomplish this... Any guidance in the right
direction is most appreciated.



--
Gina


"xRoachx" wrote:

> Hi Gina -- If the report is run once each day, you can concatenate the name
> and the date to form the name of the file. This is probably the easiest
> option. If you need more specific help, post your code you use to export
> your report.
>
> "Gina" wrote:
>
> > Everyday I import a table into Access (an exported query from People Soft).
> > The data is manipulated and then a report is exported to an Excel file. I
> > have a Macro performing this with a push of a button on a form that is on the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
> > Start Up menu. Because it is automated, the name of the exported report is
> > the same each day and is therefore overwritting the prior days report.
> >
> > My question: Is there a way to increment the name of the report to export.
> > I know that People Soft and some others have this process of incrementing the
> > name. I hope I have given enough details.
> >
> > Thanks.
> > --
> > Gina

Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:14 AM
xRoachx's Avatar xRoachx
Guest
 
Posts: n/a
   
   
RE: Incrementing Output Files

I misread your post, sorry about. I assumed you were using code.

How are you exporting the report? If you are going to File-->Export, then
you can simply edit the file name.

If you're exporting through the query, do not except the overwrite when
prompted and rename the file. If you are exporting using a macro, you will
need to either rewrite this function in VBA or use one of the previously
mentioned methods.

"Gina" wrote:

> xRoachx,
>
> Thank you for your reponse.
>
> Although, I have used some VB Scripting, I am not a programmer (learning a
> little more each day) and in this particular case - I have not utilized any
> VB scripting.
>
> This database's sole purpose is to import a single table overwritting the
> prior one, from that table a report is generated and exported using the
> following path.
>
> F:\Collections\Collectors\Payment History Reports\Payment History.xls
>
> I guess I was thinking that something could be written within the path (some
> coding) that would tell it to increment. I suppose I'm way off, however, if
> you feel that VB scripting will accomplish this... Any guidance in the right
> direction is most appreciated.
>
>
>
> --
> Gina
>
>
> "xRoachx" wrote:
>
> > Hi Gina -- If the report is run once each day, you can concatenate the name
> > and the date to form the name of the file. This is probably the easiest
> > option. If you need more specific help, post your code you use to export
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
> > your report.
> >
> > "Gina" wrote:
> >
> > > Everyday I import a table into Access (an exported query from People Soft).
> > > The data is manipulated and then a report is exported to an Excel file. I
> > > have a Macro performing this with a push of a button on a form that is on the
> > > Start Up menu. Because it is automated, the name of the exported report is
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
> > > the same each day and is therefore overwritting the prior days report.
> > >
> > > My question: Is there a way to increment the name of the report to export.
> > > I know that People Soft and some others have this process of incrementing the
> > > name. I hope I have given enough details.
> > >
> > > Thanks.
> > > --
> > > Gina

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:14 AM
Ron2006's Avatar Ron2006
Guest
 
Posts: n/a
   
   
Re: Incrementing Output Files

Where the file name is right now try the following:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602

"F:\Collections\Collectors\Payment History Reports\Payment History " &
year(date()) & format(month(date()),"00") & format(day(date()),"00") &
".xls"

Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:14 AM
Gina's Avatar Gina
Guest
 
Posts: n/a
   
   
RE: Incrementing Output Files

xRoachx,

Thanks for the quick response.

During the Macro run, it will prompt you to overwrite, giving you the
opportunity to give it a different name. Because many users will be using
this, they will not know what another user has named it (without going to the
actual folder and looking at each file). So it was my hope to automate the
incrementing of the name and thereby leaving the end user out of the
equation. Do you happen to have an example of a VB script that I could adapt
to my DB.
--
Gina


"xRoachx" wrote:

> I misread your post, sorry about. I assumed you were using code.
>
> How are you exporting the report? If you are going to File-->Export, then
> you can simply edit the file name.
>
> If you're exporting through the query, do not except the overwrite when
> prompted and rename the file. If you are exporting using a macro, you will
> need to either rewrite this function in VBA or use one of the previously
> mentioned methods.
>
> "Gina" wrote:
>
> > xRoachx,
> >
> > Thank you for your reponse.
> >
> > Although, I have used some VB Scripting, I am not a programmer (learning a
> > little more each day) and in this particular case - I have not utilized any
> > VB scripting.
> >
> > This database's sole purpose is to import a single table overwritting the
> > prior one, from that table a report is generated and exported using the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
> > following path.
> >
> > F:\Collections\Collectors\Payment History Reports\Payment History.xls
> >
> > I guess I was thinking that something could be written within the path (some
> > coding) that would tell it to increment. I suppose I'm way off, however, if
> > you feel that VB scripting will accomplish this... Any guidance in the right
> > direction is most appreciated.
> >
> >
> >
> > --
> > Gina
> >
> >
> > "xRoachx" wrote:
> >
> > > Hi Gina -- If the report is run once each day, you can concatenate the name
> > > and the date to form the name of the file. This is probably the easiest
> > > option. If you need more specific help, post your code you use to export
> > > your report.
> > >
> > > "Gina" wrote:
> > >
> > > > Everyday I import a table into Access (an exported query from People Soft).
> > > > The data is manipulated and then a report is exported to an Excel file. I
> > > > have a Macro performing this with a push of a button on a form that is on the
> > > > Start Up menu. Because it is automated, the name of the exported report is
> > > > the same each day and is therefore overwritting the prior days report.
> > > >
> > > > My question: Is there a way to increment the name of the report to export.
> > > > I know that People Soft and some others have this process of incrementing the
> > > > name. I hope I have given enough details.
> > > >
> > > > Thanks.
> > > > --
> > > > Gina

Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:14 AM
Gina's Avatar Gina
Guest
 
Posts: n/a
   
   
Re: Incrementing Output Files

Ron,

Thanks for your assistance.

I tried your format, however, it gave an error msg. 'path is too long'. So
I shorten the path down to the first folder 'Collections'. Although the path
is no longer too long, it still was unable to perform the export.
Unfortunately, its the 'format' part it doesn't seem to recognize.

I am putting this in a Macro - Output to - under Output File (file path).

However, if there is a better way, I'm open for suggestions.

Thanks!
--
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
Gina


Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
"Ron2006" wrote:

> Where the file name is right now try the following:
>
> "F:\Collections\Collectors\Payment History Reports\Payment History " &
> year(date()) & format(month(date()),"00") & format(day(date()),"00") &
> ".xls"
>
>

Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:15 AM
Ron2006's Avatar Ron2006
Guest
 
Posts: n/a
   
   
Re: Incrementing Output Files

  Donate Today!  
The format part was an attempt at hving the date always format as
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602

asdfbb 20060530.xls

If you can live with

asdfbb 2006530.xls you can take the format out.

Or on the form where you have the button
1)create a txtbox - named myfilename and make it visible=false if you
want.
2) in the click event where you call your macro, place
me.myfilename = "F:\Collections\Collectors\Payment History
Reports\Payment History " & year(date()) & format(month(date()),"00") &
format(day(date()),"00") & ".xls"
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10602
3) in the macro, in place of the file name place
Forms![formnamewhere button is]![myfilename]

(watch for wraping in this posting.)

Try that
Ron

>


Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
US Congress panel passes...
Today 04:22 AM
0 Replies, 1 Views
How does Sikhi help you...
Today 04:15 AM
40 Replies, 1,075 Views
Harmeet Kaur Took the...
Today 03:40 AM
0 Replies, 3 Views
Woolwich Killing: The...
Today 03:06 AM
9 Replies, 127 Views
Is Science a Religion?
Today 03:00 AM
10 Replies, 1,914 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:43 AM
319 Replies, 7,675 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 00:36 AM
182 Replies, 4,576 Views
Rochester Gurdwara...
Today 00:24 AM
1 Replies, 44 Views
Panjabi Alphabet Resource
Yesterday 23:15 PM
12 Replies, 6,555 Views
Transgenderism ... Right...
Yesterday 22:55 PM
30 Replies, 1,353 Views
Biography of a Scholar:...
Yesterday 22:53 PM
1 Replies, 48 Views
Dusting The Web
Yesterday 22:25 PM
0 Replies, 31 Views
How Pure the Tongue? New...
Yesterday 21:29 PM
0 Replies, 47 Views
Stockholm riots throw...
Yesterday 21:14 PM
1 Replies, 32 Views
Biography of a Scholar:...
Yesterday 18:59 PM
2 Replies, 165 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 04:25 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.47861 seconds with 32 queries
0