Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

FileDialog error trapping

Discussion in 'Information Technology' started by Rich Stone, Jul 28, 2006.

  1. Rich Stone

    Rich Stone
    Expand Collapse
    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?
     
  2. Loading...


  3. Amy Blankenship

    Amy Blankenship
    Expand Collapse
    Guest

    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

    "Rich Stone" <RichStone@discussions.microsoft.com> wrote in message
    news:1C292D06-94C9-4440-A3BB-B46AF5CCF149@microsoft.com...
    >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?
     
  4. Rich Stone

    Rich Stone
    Expand Collapse
    Guest

    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...
     

Share This Page