Textbox problem

chacal

Registered User.
Local time
Today, 08:41
Joined
Jun 1, 2005
Messages
40
Hi everyone,

My problem is the following: I have a textbox where the user input an amount to be saved in the data base. But when I enter an amount and I get out of the textbox, this one modify itself to put 1 instead. And if I come back in the textbox, the amount that I have previously entered comes back.

I really don't understand why it behaves like that.

Thanks in advance for your help
 
Could the field that the text box is bound to be Integer or Long? If it is a currency, you would want Single or Double.
 
Sounds like you are entering a decimal into a integer field. Can you explain what you are entering and what the datatype of the field the control (textbox) is bound to?
 
all right, I found my problem.

I changed the format of the textbox in my code, but I changed it the wrong way.

Thanks a lot for your help!
I appreciate.
 

Users who are viewing this thread

Back
Top Bottom