YOU choose.
You have been given advice already.
And arnel - I assume you are referring to yourself with the 'old folk' comment
You should remove all the calculated fields from your table and then replicate them in a query like so:
TotaleAdulti: [adulto]*[adulti]
That does not go in the criteria section, but the top line of the Query Design form. That will produces the calculation you need. Follow that example to replace all your caluculated fields.
Calculated fields are quite limited. We can teach two techniques. Calculated Fields in tables that works sometimes or calculated fields in queries that works all the time. It is simply too confusing to newbies. When you jump in with conflicting advice, you might mention that you do not agree with the advice given so far and are offering a different approach. It is quite alright to offer an alternative but please try to not cause chaos when you do it. We're up to 26 posts in this thread that should have ended after 9.why is it so hard fir tou guys hard to accept new changes in access
Only the abomination data types like multi-valued fields. And the Append Only property of Long Text and the List/combo options for Short Text. The reason we advise against using these data types is because in some cases, you have to learn new SQL Syntax to use them, in others they mask the actual data value causing nothing but problems in queries and code and in others (hyperlink and the Append Only property), they simply violate first normal form which is so basic that it is hard to even believe that someone at MS thought it was a good idea.you always advise to stay away from the new data type
what chaos are you talking about?
It is quite alright to offer an alternative but please try to not cause chaos when you do it.
You should remove all the calculated fields from your table and then replicate them in a query like so:
TotaleAdulti: [adulto]*[adulti]
That does not go in the criteria section, but the top line of the Query Design form. That will produces the calculation you need. Follow that example to replace all your caluculated fields.
Quota_Totale: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*.75
Quota_Commision: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*.25
Code:Quota_Totale: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*.75
This will give your your result less the 25% commission.
Code:Quota_Commision: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*.25
Would return just the commission amount.
Quota_Totale: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*[COLOR="Red"]0,75[/COLOR]
You're window's setting for decimal seperator is most likely a comma and not a period, just replace .75 with 0,75
Code:Quota_Totale: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*[COLOR="Red"]0,75[/COLOR]
JanR
You're window's setting for decimal seperator is most likely a comma and not a period, just replace .75 with 0,75
Code:Quota_Totale: ([TotaleAdulti]+[TotaleRagazzi]+[TataleBambini])*[COLOR="Red"]0,75[/COLOR]
JanR
above mentioned commission rate (,75) is changing agent to agent