Format from 2 to 02

G

Guest

My expression is

Format([Field8]),"00")

This should turn period 1 into 01, and period 2 into 02, so that 02 will
come before period 10,11 and 12 when it is sorted in the OLAP cube

However I am getting ;

The expression you entered contains invalid syntax, or you need to enclose
your text data in quotes

Any one have any idea on this one : the field is formatted as text in the
design mode, of course I have tried to format it as a number but this does
not solve it.

Thanks
 
D

Douglas J. Steele

You've got an extra closing parenthesis after the closing square bracket. It
should be:

Format([Field8],"00")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top