Results 1 to 3 of 3

Thread: HELP WITH SQL?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Posts
    118

    Post

    I have a MS Access data base with a table named Orders I need to find all records with
    status(Field in Table)"OPEN" after I find them I then need to change "OPEN" to "ORDERED" Can any one give me help on this?

    Thanks

  2. #2
    New Member
    Join Date
    Jul 1999
    Posts
    4

    Post

    Write this in your code:

    DoCmd.SetWarnings False
    DoCmd.RunSQL "UPDATE Orders SET Orders.Status = 'ORDERED' WHERE (((Orders.Status)='OPEN'))"
    DoCmd.SetWarnings True

  3. #3
    Guest

    Post

    You could use the SQL UPDATE

    Database.Execute "Update Orders set Orderstatus = 'ORDERED' where Orderstatus= 'OPEN'"

    Database.Execute "Update Table set Field = NewValue where Field = OldValue"



    ------------------

    Vincent van den Braken
    EMail: [email protected]
    ICQ: 15440110
    Homepage: http://www.azzmodan.demon.nl




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