D
Desilu via AccessMonster.com
How would I convert the below query IIF statement to a procedure?
Basically I'm working with an alpha numberic field that so far has had either
numbers or characters stored within. Also, based on the value of the field,
I do have to add a value from another field. In the end the field is of
course formatted as text.
MyGroupNum:
Trim(IIf([Group Num]="0000001000",Str(Val([group num])+Val([account num])),
IIf([Group Num]="0000002000",Str(Val([group num])+Val([account num])),
IIf(Left([group num],1)<>"0",[group num],
IIf(Len(Val([group num]))=3,"0" & Val([group num]),Val([group num]))))))
Thank you in advance.
Desilu
Basically I'm working with an alpha numberic field that so far has had either
numbers or characters stored within. Also, based on the value of the field,
I do have to add a value from another field. In the end the field is of
course formatted as text.
MyGroupNum:
Trim(IIf([Group Num]="0000001000",Str(Val([group num])+Val([account num])),
IIf([Group Num]="0000002000",Str(Val([group num])+Val([account num])),
IIf(Left([group num],1)<>"0",[group num],
IIf(Len(Val([group num]))=3,"0" & Val([group num]),Val([group num]))))))
Thank you in advance.
Desilu