By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,294 Members | 2,645 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,294 IT Pros & Developers. It's quick & easy.

Adding TIme to date while creating Backup in CompactDatabase Method

P: n/a
I have been reading the posts regarding the CompactDatabase method and
would like to say Thanks to everyone, especially Mr.Steele. I have
taken his advice and make a backup from the Backend before compacting
and use his code
Format$(Date(), "yyyymmdd") & ".bak"
I would like to add the Time, as well as the date and don't know how -
I have tried
Format$(Date(),"yyyy-mm-dd hh:nn" & .bak
but the colon seems to screw it up.
Any help for a newbie out there?
Thanks in Advance
Peter Burling

Jan 5 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Certain specail characters are not allowed in file names.

Put a dash there or nothing at all.

Ron

Jan 5 '07 #2

P: n/a

Ron2006 wrote:
Certain specail characters are not allowed in file names.

Put a dash there or nothing at all.

Ron
Thanks Ron!
One of those forest through the trees things! I never thought of the
character restrictions in file names..
Again,
Thanks
Peter

Jan 5 '07 #3

P: n/a
It has bitten me, that is the reason I remembered it.

Glad that helped.

Ron

Jan 5 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.