You likely are not throwing out the keypress.....
Access is being confused, since you have Enter key = default for a
particular button....
In anther case...you want to do something else...
Add the following line of code
keypress = 0 ' throw keypress into black hole...access will not see
it...
Hence,your you code would (something) like
Private Sub Text28_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
KeyCode = 0 ' black hold for key...
Call Command30_Click
End If
End Sub
By adding the keycode = 13, then the standard default button, or anything
else for that matter will NOT see/get/use the keypress....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.members.shaw.ca/AlbertKallal