• Issues after splitting data tables (97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Issues after splitting data tables (97)

    Author
    Topic
    #392977

    I have inherited a project that contains code behind the event of a control. This one is a real challenge for me. I have an mdb and an mde that both work fine when the data tables are a part of the mdb or mde. But once split I get the following error message:
    “Error 3219:Invalid operation”

    when running this line of code:
    Set rst = dbs.OpenRecordset(“tblRates”, dbOpenTable)

    Why will this work when the tables are not split, but doesn’t work when the tables ARE split? I don’t profess to be “Access proficient” but this doesn’t seem rational to me. I used Access’ Database splitter to split the data.

    Any ideas?

    Thanks.

    Ken

    Viewing 1 reply thread
    Author
    Replies
    • #709458

      You can only use dbOpenTable on local tables. Use dbOpenDynaset on linked tables.

      • #709472

        Charlotte,

        You are awesome. Will the dbOpenDynaset also work on local tables, or does it require the dbOpenTable always on local tables?

        Thanks again for your help.

        Ken

        • #709476

          dbDynaset opens an editable recordset. It will work on local or attached tables. If you don’t need to edit the recordset but just want to read it, use dbOpenSnapshot, which takes fewer resources.

        • #709477

          dbDynaset opens an editable recordset. It will work on local or attached tables. If you don’t need to edit the recordset but just want to read it, use dbOpenSnapshot, which takes fewer resources.

      • #709473

        Charlotte,

        You are awesome. Will the dbOpenDynaset also work on local tables, or does it require the dbOpenTable always on local tables?

        Thanks again for your help.

        Ken

    • #709459

      You can only use dbOpenTable on local tables. Use dbOpenDynaset on linked tables.

    Viewing 1 reply thread
    Reply To: Issues after splitting data tables (97)

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

    Your information: