I have a field where I want to keep scores for hockey matches. At the moment, I am assuming all socres will be single digit. I will allow for scores greater than 9 later.
I’ve set this up as an Integer, and using an input mask of 00. I’ve also set format to 0 – 0.
Later, I want to calculate goals for and against, and assumed this should be Left([Score],1) and Right([Score],1). It seems to work fine except where the score has a leading zero eg 0 – 2. In this case, Left([Score],1) returns 2 as does Right([Score],1)
I know I could resolve this by using a text format, but I want to solve it if I can using numeric values.
I assumed (wrongly?) that by defining an input mask of 00 rather than 99, I am forcing a value to be entered with 2 digits even where the leading one is zero.
Any suggestions as to where I’m going wrong?