Hi...
I am currently trying to read the checkbox value from a field in a table and do a calculation using the data. If the checkbox is checked then i charge a weekend rate, if it isn;t checked i charge a weekday rate.
IIf(Invoice.HiredOnWeekend=TRUE,SUM(DATEDIFF("d",Invoice.HiringDate,Invoice.ReturnDate)*Equipment.EquipmentPriceWeek),SUM(DATEDIFF("d",Invoice.HiringDate,Invoice.ReturnDate)*Equipment.EquipmentPriceWeek))
I have tried various values for what the checkbox should read but no luck yet. (true,false,0,1,-1, and just the coloum name)
Any help is greatly appreciated.
I am currently trying to read the checkbox value from a field in a table and do a calculation using the data. If the checkbox is checked then i charge a weekend rate, if it isn;t checked i charge a weekday rate.
IIf(Invoice.HiredOnWeekend=TRUE,SUM(DATEDIFF("d",Invoice.HiringDate,Invoice.ReturnDate)*Equipment.EquipmentPriceWeek),SUM(DATEDIFF("d",Invoice.HiringDate,Invoice.ReturnDate)*Equipment.EquipmentPriceWeek))
I have tried various values for what the checkbox should read but no luck yet. (true,false,0,1,-1, and just the coloum name)
Any help is greatly appreciated.