LJtechnical
Technical User
Hi All
I'm having trouble splitting a decimal number into its two components ie if number = 347.9893
Iwant my query to extract as Field1 = 347 and Field2 = 9893,
I think the trouble is the variation with decimal places used as the following works well for Field1 but ont Field2, where I get a range of return values some correct and some not.
Field1: Left([Expr1],InStr([Expr1],".")-1)
Field2: Right([Expr1],InStr([Expr1],".")+1)
Any ideas
I'm having trouble splitting a decimal number into its two components ie if number = 347.9893
Iwant my query to extract as Field1 = 347 and Field2 = 9893,
I think the trouble is the variation with decimal places used as the following works well for Field1 but ont Field2, where I get a range of return values some correct and some not.
Field1: Left([Expr1],InStr([Expr1],".")-1)
Field2: Right([Expr1],InStr([Expr1],".")+1)
Any ideas