Rearrange Name

CB_DFW

Registered User.
Local time
Today, 05:00
Joined
Nov 5, 2008
Messages
30
I have this code that backs up a table and names it:

HH:MM:SS PM MM/DD/YYYY STRs

I would like to change it so that it saves as:

STRs MM/DD/YY HH:MM:SS PM

Now would be "STRs 12/18/08 12:29:51 PM"

Code:
DoCmd.RunSQL "SELECT STRs.* INTO [" & Format(Time, nnhh) & " " & Format(Date, mmdd) & " STRs] FROM STRs;"

Thanks so much.
 
try something like:

Code:
DoCmd.RunSQL "SELECT STRs.* INTO [STRs " & Format(Date, mmddyy) & " " & Format(Time, nnhh)& "] FROM STRs;"
 
Worked perfect. Thanks a bunch.
 

Users who are viewing this thread

Back
Top Bottom