Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic naming of a file used with TransferText macro

Status
Not open for further replies.

Ju

Technical User
Jul 4, 2000
61
FR
I am exporting the content of a table to a file. I'd like to have the file automatically named 27ddmmyyyy where ddmmyyyy is the date of the day.<br><br>Thank you.
 
Look up TransferText in Help for assistance with each of the parameters.&nbsp;&nbsp;In general, your visual basic code should look like:<br><br>DoCmd.TransferText acExportDelim, specificationName, _<br> tblName, &quot;27&quot; & Format$(Date(),&quot;ddmmyyyy&quot;)<br><br>
 
MMhhh....I have a little problem....<br>Actually, where should I place it?<br><br>Thanks.
 
This line should be part of a function or sub that is executed at the point that you are ready to export the file.&nbsp;&nbsp;For example, you could create a button in a form that calls this function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top