Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting enter key behaviour through VBA?

Status
Not open for further replies.

hcg

Technical User
May 17, 2000
5
NL
Does anybody know a way to set the enter key behaviour through VBA in Access? A Docmd.RunCommand acCmdOptions only brings up the options window but I do not know a way to set or clear any of the options which are on it.
 
I'm not sure if this is what you want:

Me!YourTextField.EnterKeyBehavior = False 'Default


Me!YourTextField.EnterKeyBehavior = True 'New Line In Field
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top