FileDialog error trapping

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I know this isn't the favoured method on this discussion forum but I'm hoping
somebody can help anyway...

I have a file dialog used for saving a backup file with the filename based
on the date the backup is made. However, if an attempt to do a backup again
is made, the error pop-up has the title 'Microsoft Visual Basic'. Can this be
changed to the name of my database, as on all other pop-ups or can I trap the
error and let the overwriting go ahead without user interaction?
 
I believe the favored method is to look for the existence of the file and
then use the kill function to remove it if it exists before trying to create
it again.

HTH;

Amy
 
Hmmm, it's an idea but I've found an alternative way of copying the backup
file which automatically overwrites it after giving a warning - and a last
minute way out - to the user first!

By the way, the thing I meant this forum frowns upon was using the
'FileDialog' at all!!!!

Thanks anyway...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top