I have trouble with calculating some percentages.
This is the code:
all variables are declared as single
sngPerTotal = sngTotalOrdered \ (sngTotal \ 100)
sngTransCost = (sngTranport\100) * sngPerTotal
The problem is that it sngTransport = 150 I still get a value of 1.
So it looks like Access uses an integer for the calculation instead of a single.
What am I doing wrong here? How do I make sure that I get 1.5 as the result?
W.
This is the code:
all variables are declared as single
sngPerTotal = sngTotalOrdered \ (sngTotal \ 100)
sngTransCost = (sngTranport\100) * sngPerTotal
The problem is that it sngTransport = 150 I still get a value of 1.
So it looks like Access uses an integer for the calculation instead of a single.
What am I doing wrong here? How do I make sure that I get 1.5 as the result?
W.