Results 1 to 3 of 3

Thread: Deleting Records from Recordset - Complex

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111

    Post

    I know this sounds simple, but I have a FoxPro 2.6 Database (Not my choice) in which there is a table called custmain. This table has a field called customerco and I am trying to delete all of the records where customerco is "LINH". I have selected the records using SQL, placed them in a DAO recordset and tried using .Delete method, but this doesn't work on these (it has on others).

    I have also tried executing an SQL statement (Delete * from custmain where customerco='LINH') and the records are still not deleting. Please can someone help!

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

    Post

    Your SQL statement is wrong

    Change this:
    (Delete * from custmain where customerco = 'LINH')

    To this:
    (Delete from custmain where customerco = 'LINH')

  3. #3
    Junior Member
    Join Date
    Feb 2000
    Location
    Pune, Maharashtra, India
    Posts
    16

    Post Reply to WnetGetUser

    hi,
    Thnx for the API.
    But how do I use it ??
    Tried it. Gives me a null string.
    Mail me at [email protected]

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