This would be one method. Add to the list of allowed keys as needed.
Private Sub Combo0_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
Case vbKeyTab, vbKeyEscape, vbKeyReturn
Case Else
KeyCode = 0
End Select
End Sub
Setting the KeyCode to 0 cancels the key entry.
--
Wayne Morgan
MS Access MVP
"lk" <ce**********@email.it> wrote in message
news:3a*************@individual.net...
Douglas J. Steele wrote: Set the combobox's LimitToList property to True. They'll still be able to
type, but their typing won't be accepted unless it's in the list.
Thanks for your answer.
I have already used that property.
But the problem is just the alert message.
I want to avoid the user could type in the combobox.
ByE
LuKe