Text Box Entry

peterbowles

Registered User.
Local time
Today, 20:18
Joined
Oct 11, 2002
Messages
163
Hi all

I have designed a form that has a key pad on the form. It is like a calculater and what i want to do is when the user preses button 1 a number 1 is entered into the text box and so on.

I have managed to do the code for putting a number in a text box but when I trying adding more the next number over writes the first number


Please help

Thanks
 
Use this code:

textbox = textbox & "#" 'Replace the # by the number wanted.

The number you enter must be a string. Not an integer.
At the end, if needed in integer, use this code:

varNumber = CInt(textbox)

Newman
 
appending

If the field where you are putting info in is text, try

Me.[fieldname] = Me.[fieldname] & Newvalue

If it's numeric, try

Me.[fieldname] = Me.[fieldname]*10 + Newvalue

Hope it helps
 

Users who are viewing this thread

Back
Top Bottom