Using a query to change values in a table (1 Viewer)

srideout2525

Registered User.
Local time
Today, 04:59
Joined
Mar 4, 2003
Messages
81
I have a table filed with rates. I want to have all the rates reduced buy 15 dollars. How can i easily implement this change?
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 03:59
Joined
Feb 19, 2002
Messages
43,466
You can use the QBE window to build an update query.

UPDATE YourTable SET YourTable.YourPrice = [YourPrice] - 15;

1. Open the QBE window.
2. Add the table
3. Select the column you want to update.
4. Change the query type to update.
5. In the UpdateTo cell place: [YourPrice] - 15

The square brackets are important. If you omit them, Access will interpret the whole thing as a string "YourPrice - 15" which won't work at all.
 

srideout2525

Registered User.
Local time
Today, 04:59
Joined
Mar 4, 2003
Messages
81
Thank you

Gotit. Just finished it as I received your post. It's been awhile since I've opened Access :(
 

Users who are viewing this thread

Top Bottom