Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
I am trying to run a query on a table and want to see if the time is less than 14:00 hours. If so then multiply a field in the same table by .90.
The table contains the following Fields
Customer Id
Party Date
Start Time in AM/PM format
Total Cost
I would like to check on the query to see if the Start Time is before 14:00 or 02:00 PM and if so then multiply the total cost by 0.90 otherwise leave the total cost as it is.
Could someone please let me know how this is done.
I wrote something like this but that would not work.
IIf([Party Order].[Start Time]<1400,[Party Order]![Total Cost]=[Party Order]![Total Cost]*0.9,[Party Order]![Total Cost])
The table contains the following Fields
Customer Id
Party Date
Start Time in AM/PM format
Total Cost
I would like to check on the query to see if the Start Time is before 14:00 or 02:00 PM and if so then multiply the total cost by 0.90 otherwise leave the total cost as it is.
Could someone please let me know how this is done.
I wrote something like this but that would not work.
IIf([Party Order].[Start Time]<1400,[Party Order]![Total Cost]=[Party Order]![Total Cost]*0.9,[Party Order]![Total Cost])