i have a cashregister where i make the totals of the sales and profit
when i load the project i get error type mismatch
now i understand that i cannot format the currency of a value that is 0 but that value of a 0 is the no discount for the customer
if i don't want to give him a discount then it 0.
is there a way to bypass this error and still see the 0 value discount?
this is the code that i put to do the calculation and gives me the error Type Mismatch
when i load the project i get error type mismatch
now i understand that i cannot format the currency of a value that is 0 but that value of a 0 is the no discount for the customer
if i don't want to give him a discount then it 0.
is there a way to bypass this error and still see the 0 value discount?
this is the code that i put to do the calculation and gives me the error Type Mismatch
Code:
LblProfit.Caption = CCur(FrmCashRegister.LblCost.Caption - (FrmInventory.LblTotal.Caption))