Link to home
Start Free TrialLog in
Avatar of budgilbert67
budgilbert67

asked on

How do I update multiple records from a search query

Hi,
I have an invoice that is genorated from a search of a Access database using asp VBscript.   Once the invoice is created I would like to have a feild to change the price of each item in the repeat region seperately.  For example if there is five items returned from the search and I need to change the price of three of them.  How would I do it on the same page in the repeat region table.
Avatar of HuyBD
HuyBD
Flag of Viet Nam image

You can use "select case" in MSSQL e.g.

select case when price=1 then 122 else price end as price from (seachquery)
ASKER CERTIFIED SOLUTION
Avatar of Aneesh
Aneesh
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of budgilbert67
budgilbert67

ASKER

aneeshattingal,
The invoice is for billing purposes, If the the user entered the wrong price and I need to ajust it.  That is how I determine if the price needs to be changed.   So what I would like to create is a number field that appears next to each price, and then item by item except the price or change it.  I hope that this helps you understand what I am trying to accomplish a little better.
Thank you
accept the price I ment Sorry
accept the price I meant.   I can't spell today
Please provide the table strucure