Hello!
Currently I am calculating something using this formulas:
Set(
sumTijdTotaal,
Sum(
colUrenRegistratie,
TijdTotaal
)
);
Set(
remainder,
8 - Mod(
sumTijdTotaal,
8
)
);
And also this formula:
Patch(
UrenRegistratie,
Defaults(UrenRegistratie),
EditForm1.Updates,
{TijdTotaal: Value(EditForm1.Updates.TijdTotaal) - remainder}
);
The first formula basically sums up all of the hours on the Tijdtotaal column in my database. This is a number value. The second one uses the mod function by 8 and gets the remainder of it. So if you have the value 9, the remainder will be 1.
In the second formula, I just use the patch function to send information to my database. I do Tijdtotaal - the remainder and put that in the tijdtotaal column.
For some reasons this formula works good when only using full numbers. But as soon as I get a number with a comma, it removed the comma and sends it to the database.
So if I have a 6,25 it will write it as 625
What can I do about this?