Klatuu,
I understand your concern, Nikos, but, depending on data type it may or may
not be an issue. If the number is an interger or a long, then it is not a
concern. If you have decimal places, the game changes.
Correct, but Claes didn't specify the data type; Access's default
default numeric type (no pun intended) being Double, there's a good
chance people reading this would try to apply it on a double.
This is a lesson learnt the hard way!
As I said before, it can seldom be said that any technique is the absolute
right way to do someting.
Agreed. I was just trying to be as general as possible, but there will
always be exceptions.
There are, on the other hand, some really wrong ways to do things. Don't we
see them every day?
Not only see them, in all fairness I've had my fair share in the doing!
I occasionally open some older app of mine, and feel ashamed at what I
see - or happy I've come a long way, depends on how one looks at it.
I think the suggestion you made in a previous post was very valid. I don't
think string operations on numbers are a bad thing provided you know what
data you expect and what results you want. You must agree, there are times
when string operations on numbers are required.
OK, I admit I've done it myself, in separating digits for check digit
calculation in EAN numbers (the European equivalent of UPC numbers); I
had that as a text field though. I suppose there may be cases where this
practice could apply on pure numeric data, I just haven't had one yet.
Regards,
Nikos