|
-
Aug 14th, 2000, 06:06 AM
#1
Thread Starter
Junior Member
I have the following bits of code on my form
Private Sub l_surname_KeyPress(KeyAscii As Integer)
KeyAscii = UCaseKeyPress(KeyAscii)
End Sub
Private Sub l_surname_LostFocus()
'
If Not g_exit_pressed Then
checkTextBox l_surname
End If
'
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
SendKeys "{tab}"
End If
End Sub
The code works fine, and the return key send a tab. BUT, when leaving the l_surname field with the return key I het a 'Ping' sound from windows.
Any Ideas Folks?
Cheers
Neil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|