Private Sub combo_sport_KeyPress(KeyAscii As Integer)
Dim TheKey As String
TheKey = KeyAscii
If TheKey = "324" Then
' if the user hits the space bar
' check for the ascii code 324
MsgBox ("We are in a space " & combo_sport)
Else
MsgBox ("keyascii= " & KeyAscii & vbYesNo)
End If
End Sub
thx in advance
Dim TheKey As String
TheKey = KeyAscii
If TheKey = "324" Then
' if the user hits the space bar
' check for the ascii code 324
MsgBox ("We are in a space " & combo_sport)
Else
MsgBox ("keyascii= " & KeyAscii & vbYesNo)
End If
End Sub
thx in advance