I am trying to use the CopyDatabaseFile method to backup my database. But every time I run it it tells me that the CopyDatabaseFile is not available at this time. I tried changing the options to No,No; Yes,NO; and No, Yes -- nothing worked.
DBFile = "FileName" + Str(Time) + ".mdf"
DoCmd.CopyDatabaseFile DBFile, Yes, Yes
Any ideas?
DBFile = "FileName" + Str(Time) + ".mdf"
DoCmd.CopyDatabaseFile DBFile, Yes, Yes
Any ideas?