Usage info: Windows 2000 environment, Access 2002
I have a database with a combo box labeled cmbComments. I have some code that runs in the _AfterUpdate event of the combo box, but I would like the same code to run if the user does not enter a comment at all, and just hits tab or enter to move on. I do not, however, want this code to run if they hit shift-tab to go back to a previous record, or click on another field to edit it. Does anyone know a way to do this? I would imagine using an If Then statement or Select Case statement, but was unsure of a good method for doing so. Any advise/assistance will be greatly appreciated.
Thanks,
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
I have a database with a combo box labeled cmbComments. I have some code that runs in the _AfterUpdate event of the combo box, but I would like the same code to run if the user does not enter a comment at all, and just hits tab or enter to move on. I do not, however, want this code to run if they hit shift-tab to go back to a previous record, or click on another field to edit it. Does anyone know a way to do this? I would imagine using an If Then statement or Select Case statement, but was unsure of a good method for doing so. Any advise/assistance will be greatly appreciated.
Thanks,
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