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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

when using TransferText, I have problems with the name of the file

Status
Not open for further replies.

nancylynn

Programmer
Apr 16, 2002
9
US
I am exporting data from a table when a certain form is closed. When exporting the data, I need the filename to be a specified format. For example, the filename has to start with a "T" and then include the day of the month followed by the time in military format. For example:
J21014602.txt

Is this possible?? How?
 
Nancy,

Check out the "User Defined Date Time Formats" online documentation for the Format function. It should help you to do what you want.

eg. FileName = "T" & (format(now,"ddhhnnss") returns a string based on the current datetime, in day, hour, minute, second format, and prefixed with the letter "T".

Im unsure of the standard military format, but this should put you on track,
Cheers,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top