Using Access 2003, I am working on a touch screen input form. I was able to find the following code to create the individual letter buttons to input a name in the field which works great:
Private Sub commandA_Click()
Dim txtVal As String
Dim newTxtVal As String
If IsNull(Me![FIRSTNAME].Value) Then
Me![FIRSTNAME].Value = "A"
Else
txtVal= Me![FIRSTNAME].Value
newTxtVal = txtVal & "A"
Me![FIRSTNAME].Value = newTxtVal
End If
End Sub
I would like to create a DELETE button to allow the user, when clicked, to delete the last letter in the field if they make a mistake but not being a
VB coder by any means I'm not sure what to modify or to write in code. Any suggestions would be great. Thanks.