A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Export text with current date



 
 
Thread Tools Display Modes
  #1  
Old December 25th, 2007, 08:26 AM posted to microsoft.public.access.queries
senthil
external usenet poster
 
Posts: 24
Default Export text with current date

hi,

I want to export a few queries to text files. I am current using "transfer
text" option through macros. If we provide the file name and the path the
files are exported to the path. How do we add the current date at the end of
each file.

eg. abc is the query name & i want the query to be exported as data_25122007.

Currently i am able to get the file name as data_. the date should be
dynamic (ie) should give the current date at the end of the file.

Any ideas, Pls help.
  #2  
Old December 25th, 2007, 09:45 AM posted to microsoft.public.access.queries
Jeanette Cunningham
external usenet poster
 
Posts: 2,190
Default Export text with current date

Hi,
also from Australia is an answer for you
strFileName = "queryName" & "_" & Format(Date, "dd-mm-yyyy")

Jeanette Cunningham


"Senthil" wrote in message
...
hi,

I want to export a few queries to text files. I am current using "transfer
text" option through macros. If we provide the file name and the path the
files are exported to the path. How do we add the current date at the end
of
each file.

eg. abc is the query name & i want the query to be exported as
data_25122007.

Currently i am able to get the file name as data_. the date should be
dynamic (ie) should give the current date at the end of the file.

Any ideas, Pls help.



 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.