I use formatnumber formula to calculate in my query
This is what I use now.
My fieldsize is double, decimal places 3, Format general number.
I use this to convert a value I enter into table to a proper case like
1 is for a pieces I enter number like 1 and get 1
2 is for a kilogram I enter 0.5 and get 0,500
3 is for a kilowatt-hour I enter 1 and get 1
4 is for Cubic metre I enter 1 and get 1
I need to add one more type that is the same as 1 can I write:
Someone please help me to make a module with above information so I could add statements like
if case1 then this
if case2 t this etc.
Thanks
This is what I use now.
My fieldsize is double, decimal places 3, Format general number.
I use this to convert a value I enter into table to a proper case like
1 is for a pieces I enter number like 1 and get 1
2 is for a kilogram I enter 0.5 and get 0,500
3 is for a kilowatt-hour I enter 1 and get 1
4 is for Cubic metre I enter 1 and get 1
PHP:
Kiekis2: IIf(1=[pagrindinis]![Tipas];FormatNumber([pagrindinis]![Kiekis];0);
IIf(3=[pagrindinis]![Tipas];FormatNumber([pagrindinis]![Kiekis];0);
IIf(4=[pagrindinis]![Tipas];FormatNumber([pagrindinis]![Kiekis];0);FormatNumber([pagrindinis]![Kiekis];3))))
I need to add one more type that is the same as 1 can I write:
PHP:
Kiekis2: IIf(1 or 5=[pagrindinis]![Tipas];FormatNumber([pagrindinis]![Kiekis];0);
IIf(3=[pagrindinis]![Tipas];FormatNumber([pagrindinis]![Kiekis];0);
IIf(4=[pagrindinis]![Tipas];FormatNumber([pagrindinis]![Kiekis];0);FormatNumber([pagrindinis]![Kiekis];3))))
Someone please help me to make a module with above information so I could add statements like
if case1 then this
if case2 t this etc.
Thanks
Last edited: