Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Delete all record in mdb (2000 sp 1)

    I have this mdb into dir of Global Const, with a table INPS_02 i would want to delete all record:
    Global Const gPROVADatabasePath = "GCD01F4500DATIPUBBLICAINPSSTORICO_INPS.MDB"
    ... how can?

  2. #2
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Delete all record in mdb (2000 sp 1)

    Dont worry solved with an old your post...
    Tks.

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

    Re: Delete all record in mdb (2000 sp 1)

    This is not an Excel question, so I have moved it to Access.

    You already have many examples of setting a connection to a database, so I won't repeat that.

    Dim cn As ADODB.Connection
    Set cn = ...
    ...

    To delete all records from a table:

    cn.Execute "DELETE * FROM INPS_02"

Posting Permissions

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