Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / May 2008

Tip: Looking for answers? Try searching our database.

OutputTo File Naming Convention

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brig - 08 Apr 2008 17:52 GMT
I created a macro that runs  OutpuTo a txt file.

On the exported file, can I automatically rename the file with this naming
convention:  "mmddyy or (now)" & "query name".txt  = 040808Sales.txt

Thank you.
Signature

Brig

--
Brigham Siton
Phone: (631) 780-5001
Fax: (516) 622-3501

Steve Schapel - 09 Apr 2008 21:44 GMT
Brig,

No problem about putting in the date.  Just set the Output File argument
of the OutputTo action to:
="C:\YourFolder\" & Format(Date(),"mmddyy") & "Sales.txt"

However, I know of no way to use a variable name of the query in this
way.  (Unless you are using Access 2007, in which case it may be
possible to use a SetTempVar action to achieve this.)

Signature

Steve Schapel, Microsoft Access MVP

> I created a macro that runs  OutpuTo a txt file.
>
> On the exported file, can I automatically rename the file with this naming
> convention:  "mmddyy or (now)" & "query name".txt  = 040808Sales.txt
>
> Thank you.
Brig - 09 Apr 2008 21:56 GMT
Thank you very much.

Signature

Brig

> Brig,
>
[quoted text clipped - 13 lines]
>>
>> Thank you.
CL - 16 May 2008 00:30 GMT
Thanks you so much, this really helped me!

> Brig,
>
[quoted text clipped - 12 lines]
> >
> > Thank you.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.