How can I return the Keycode of when I hit "Enter" or "Tab" or whatever other button. For now, I just want a msgBox to pop up and tell what was pressed. My ultimate goal is to say something like:
Stephen![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV
Code:
Private Sub cmbCombo1_AfterUpdate()
If KeyCode = vbKeyTab Or vbKeyReturn Then
~code to update form and move to next record
Else
~alternate code (or just do nothing)
End If
End Sub
Stephen
![[infinity] [infinity] [infinity]](/data/assets/smilies/infinity.gif)
"Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me." John 14:6 KJV