• Deleting Records (VB ver6)

    Author
    Topic
    #383483

    Hi,

    How to delete all the records in a table? Thanks…

    Viewing 0 reply threads
    Author
    Replies
    • #654162

      Are you using ADO to access a database table? Are you editing a table in a Word document? More info please…

      • #654163

        I’m using ADO to access a database table. Only managed to delete by record. Try to delete all the records in the table. Thanks…

        • #654166

          To delete all records from a table, set the CommandText for your ADO Command object to something like this:

          DELETE * FROM MyTable

          Just in case I’m completely out to lunch, I’m moving this to the Access board, where the ADO gurus hang out.

    Viewing 0 reply threads
    Reply To: Deleting Records (VB ver6)

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

    Your information: