I'm having issues with the enter key on my form.
On the last field, which is a date field if the user hits the enter key to confirm the date it automatically move the selection to my delete entry button on the top of the screen.
And if the enter key is hit again the new entry gets deleted without a prompt! Being in a multiuser environment this is just a nightmare! I have changed the enter key function in the menu, which works but this effects other databases running, so no good.
I've also changed the Tab Stop to no which has no effect. also I have tried changing the enter key behavior to New line, but this just make another line when hit in the field and makes the entry invalid.
The last thing I tried was some Keydown code I found on here, but I don't know how to use that on my form/field. When I look at all my code it all starts with Private and not Public?
This is driving me nuts. Lol I would post an image but I don't have 10 posts yet.
On the last field, which is a date field if the user hits the enter key to confirm the date it automatically move the selection to my delete entry button on the top of the screen.
And if the enter key is hit again the new entry gets deleted without a prompt! Being in a multiuser environment this is just a nightmare! I have changed the enter key function in the menu, which works but this effects other databases running, so no good.
I've also changed the Tab Stop to no which has no effect. also I have tried changing the enter key behavior to New line, but this just make another line when hit in the field and makes the entry invalid.
The last thing I tried was some Keydown code I found on here, but I don't know how to use that on my form/field. When I look at all my code it all starts with Private and not Public?
Code:
Public Function DisableKeys(KeyCode As Integer)
Select Case KeyCode
Case vbKeyReturn
KeyCode = 0
End Select
End Function
This is driving me nuts. Lol I would post an image but I don't have 10 posts yet.