Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to upade the table

Status
Not open for further replies.

1994mkiv

Technical User
May 24, 2007
28
US
I have some old open orders in the database that I would like to close. The way the table is design the value is 0 if the order is open and -1 if the order is closed. I want to close all orders older than 1/1/2004. Can I update all records by using the query?


 
Sure, use an Update query, eg:

[tt]UPDATE myTable SET myField = -1
WHERE myDate <"#1/1/2004#";[/tt]

Just change the table and field names as appropriate.

Max Hugen
Australia
 
I am sorry I am really new to the access. Where do you write the sql quires in access.
 




in the query tab, SQL view.

Skip,
[sub]
[glasses]Have you heard that the roundest knight at King Arthur's round table was...
Sir Cumference![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top