Stupid question, but...
I'm trying to create a very simple front end app for one of my clients and use it to run their crystal reports. I usually use compiled crystal rpts to do this but need to use vb for client specific reasons --
I have a good lid on the crystal end, but theres a text box
in vb that requires entry of a number - and I need it to be a whole number only.
I was under the impression that datatype LONG would do that, but it does not seem to be working that way.
What is happening is this:
if the user puts in 8.5 it rounds it up to 9, I need it to
NOT allow them to enter 8.5 to begin with, and I do have the msgbox with the error msg in it set up, but yet I dont seem to be able to force it to not allow that stupid 8.5...
what am I doing wrong? help?
lmc
cryerlisa@hotmail.com
I'm trying to create a very simple front end app for one of my clients and use it to run their crystal reports. I usually use compiled crystal rpts to do this but need to use vb for client specific reasons --
I have a good lid on the crystal end, but theres a text box
in vb that requires entry of a number - and I need it to be a whole number only.
I was under the impression that datatype LONG would do that, but it does not seem to be working that way.
What is happening is this:
if the user puts in 8.5 it rounds it up to 9, I need it to
NOT allow them to enter 8.5 to begin with, and I do have the msgbox with the error msg in it set up, but yet I dont seem to be able to force it to not allow that stupid 8.5...
what am I doing wrong? help?
lmc
cryerlisa@hotmail.com