• transfertext – import in A2k (Access 2000 – SR1)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » transfertext – import in A2k (Access 2000 – SR1)

    Author
    Topic
    #362754

    A user was recently upgraded to Access 2000. Now when I try to run the following transfer text in vba I get an error, but only if the file I’m trying to import has a .dat extension. If I rename the file to .txt, it works fine. The statement in the vba is:
    DoCmd.TransferText acImportFixed, “Modified Import Specs”, “Import”, filename

    Before we converted the database (Access 97) we always used .dat files as the “filename”. That’s because they come from a scanner, and the extension it creates it as is .dat. Never had any problem. I just don’t understand why the extension type would make a difference here because I’m passing the name of the file explicitly.

    The only thing I can find on knowledge base concerning this error (‘3027’ – Cannot update. Database or object is read-only) makes reference to ODBC connections and recordsets. I don’t see how that would apply here.

    I’m stumped. Any suggestions?

    Thanks.

    Viewing 0 reply threads
    Author
    Replies
    • #551571

      Check out this recent post – I think it deals with the same subject.

      • #551676

        Thanks for the info. That works. Had to edit the registry and add the .dat extension. The article number is Q245407 if anyone else is interested.

        Thanks again.

    Viewing 0 reply threads
    Reply To: transfertext – import in A2k (Access 2000 – SR1)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: