Do a percent increase on a price column?

M

Miracle

Hi, I have a database of products with prices and would like to do
price adjustment by 5%. I would actually like to raise the prices b
5%. Does anyone know, can this be done with a query or somehow? I did
forum search but didnt find anything.

Thanks in advance for any help!


Chri
 
N

Nikos Yannacopoulos

Chris,

All you need is an update query. From the database window select query
objects view and click on new. Select Design view and add the table that
holds your prices. Double-click on the field that holds the prices to get it
down to the queru design grid. From the menu go Query > Update query. You
will notice that there is now a new line in the grid, labelled Update To. In
that line, underneath the price field, type in:

=[PriceFieldName] * 1.05

(change PriceFieldName to the actual field name). Go back to the menu, Query
Run (or hit the toolbar button with the red exclamation mark).

Your job is done.



HTH,

Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top