Results 1 to 2 of 2

Thread: Action Query with ADO

  1. #1

    Thread Starter
    Hyperactive Member scuzymoto's Avatar
    Join Date
    Aug 1999
    Location
    Washington State
    Posts
    316

    Post

    Im converting a program from DAO to ADO to give it access to more types of databases. I know I can base my recordsource on a SQL statement but I how do I perform Action Queries on my underlying data. Such as... "Delete * from mytable where data = junk" . Sorry if this is a real beginner question. Is their anything comparable to the DAO command database.execute (<statement> )?

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    It is only a beginner question if you already know ADO! Convert all to ADO ASAP -- MS Access 2000 can only be accessed via ADO and NOT DAO! I found out the hard way. Anyways....

    dim cn as new connection

    cn.connectionstring = <yourconnectingstringhere.

    'delete everything in table
    cn.execute "delete from mytable"
    cn.close
    set cn = nothing

    HTH

    Tom

Posting Permissions

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



Click Here to Expand Forum to Full Width