I have a friend who is also learning VBA and Access (more Excel than Access, but still) who asked me last night what datatype is best to use and surprisingly I didn't really know the answer.
All I know is Long can go out to like 2 billion but doesn't do decimals, double I am not sure on its range but I know it does decimals and I was told early on to never bother with integer but at this point I don't remember by who nor why so have just always used long.
Aside from the needing decimals, what datatype should be used and why? Are there performance gains for one over the other? I am now curious as I honestly don't know why each is used aside from the obvious.
All I know is Long can go out to like 2 billion but doesn't do decimals, double I am not sure on its range but I know it does decimals and I was told early on to never bother with integer but at this point I don't remember by who nor why so have just always used long.
Aside from the needing decimals, what datatype should be used and why? Are there performance gains for one over the other? I am now curious as I honestly don't know why each is used aside from the obvious.