Results 1 to 3 of 3

Thread: SQL to Delete records in an Access DB in VB6

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203

    Post

    I have set up a "DELETE * from xyz WHERE etc." but am not sure how to execute this in VB6 - I have tried database.execute and Refresh but niether of them seem to work
    Any ideas? I haven't used a delete type sql before and I'm getting something wrong. The format of the Sql is OK as it works in Access. Thanks

  2. #2
    Member
    Join Date
    Jun 1999
    Posts
    44

    Post

    I don't know if this is part of the trouble but FROM needs to be all in caps. Can you post part of your code that deals with this to give me a better idea?

    Lloyd

  3. #3
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    "From" doesn't need to be in caps and, in fact, is an optional word.

    Try removing the "*", it's not used in a delete.

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