Numberpad form

PietKruger

Registered User.
Local time
Today, 19:52
Joined
Apr 11, 2008
Messages
13
My database will be operated with a touch screen.
I have a form with a few text boxes. I want the text boxes to open another form (numberpad), allow the user to enter values and when they press the "enter" button on the numberpad form, it should close and enter the value into the textbox. How should i do it?

Please help..
 
Take a look at this sample.

Pretty basic. Supports numbers with a decimal and doesn't allow them to enter more than one decimal.

Take a look at the code and such to get an understanding of how to adapt it to something that works for you.

Open frmNumberBox first - I did not add any code to handle the error which will occur if you try to enter a number with frmNumberpad while frmNumberBox is not open.

You can limit the number to a certain length if you want.

Also to make the code more compact you could do a single on click event which uses the name of the command buttons to determine what number they pressed, and do a simple Select Case with that. I just did a quick and dirty job for you to see what can be done.
 

Attachments

Thanx

thanx for your help. EXACTLY what i needed.

Regards
Piet
 
Need help with backspace button

I tried to change the code for the clear button to only remove the last character entered into txtnum

Private Sub cmdCLR_Click()

strNumber = Left(txtNum.Value, Len(txtNum.Value) - 1)
txtNum.Value = strNumber

End Sub

it gives me a compile error

"can't find froject or library"

can anyone help please?
 

Users who are viewing this thread

Back
Top Bottom