Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help With Import? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Mannualy when I used Import, Fixed Width, Insert In A New Table, Field 1 = 255, Let Access Assign Primary Key, Import into table

    I get

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

    Re: Help With Import? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    No. You'll have to delete the table if it already exists:

    On Error Resume Next
    DoCmd.DeleteObject acTable, "NYSDL Dog License Correction Template Import"
    On Error GoTo 0 ' or your error handling label
    DoCmd.TransferText ...

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Help With Import? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Thanks Hans

    This worked

    On Error Resume Next
    DoCmd.DeleteObject acTable, strFileName
    On Error GoTo 0 ' or your error handling label

    DoCmd.TransferText acImportFixed, "NYSDL Dog License Correction Template Import", _
    strFileName, _
    Me.strAttachment, False, ""

    John

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

    Re: Help With Import? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    Sorry, I mixed up arguments. Glad you were able to correct it.

  5. #5
    Platinum Lounger
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    4,594
    Thanks
    0
    Thanked 27 Times in 27 Posts

    Re: Help With Import? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    You could always delete the contents of the table before importing.

Posting Permissions

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