Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Feb 2003
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DoCmd.TransferText (2002)

    Is there a way to ignore import errors? I'm looping through a directory of files and appending them to staging table. I run into two import errors which I can ignore, so I really don't need the tables it creates.

    Thanks.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DoCmd.TransferText (2002)

    If you insert a line

    DoCmd.SetWarnings False

    before the DoCmd.TransferText line, and

    DoCmd.SetWarnings True

    after it, you'll suppress error messages.

  3. #3
    2 Star Lounger
    Join Date
    Feb 2003
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: DoCmd.TransferText (2002)

    I've used that command before, didn't even think about if for the error tables. Thanks Hans.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DoCmd.TransferText (2002)

    To be on the safe side, I would test it a few times before trusting it. If necessary, you can also delete all ImportErrors tables.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •