|
-
Sep 8th, 1999, 04:57 PM
#1
Thread Starter
Lively Member
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
-
Sep 8th, 1999, 06:12 PM
#2
New Member
Write this in your code:
DoCmd.SetWarnings False
DoCmd.RunSQL "UPDATE Orders SET Orders.Status = 'ORDERED' WHERE (((Orders.Status)='OPEN'))"
DoCmd.SetWarnings True
-
Sep 8th, 1999, 06:14 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|