I have 2 programs that use the code below to block users from entering text into a comboBox:
Private Sub comboBox_KeyPress(KeyAscii As Interger)
KeyAscii = 0
End Sub
One works fine while the other gives me the error below:
"The expression On Key Press you entered as the event property setting produce the following error: Procedure declaration does not match description of event or procedure having the same name"
I've tried different versions of the code and does the same thing. The comboBox has its own table and has a relationship between the main table and the comboBox.