-
Aug 23rd, 2007, 11:09 AM
#1
Thread Starter
Junior Member
[RESOLVED] How to make go textbox next line when hitting enter key?
How can I change the textbox behaviour in MS Access form to go to next line within textbox when I hit the enter key? At present when I hit the enter key it goes to next tab location.
Please help!
Thanks.
-
Aug 23rd, 2007, 10:12 PM
#2
Addicted Member
Re: How to make go textbox next line when hitting enter key?
You can insert a code inside the KeyPress Event of the TextBox object. Something like this..
Private Sub TextBox1_Kepress(.....)
If KeyCode = 13 then
NextTextBoxObject.Focus
End If
End Sub
Begin with the end in mind.
My Profile
while( !( succeed = try() ) );
-
Aug 23rd, 2007, 11:31 PM
#3
Thread Starter
Junior Member
Re: How to make go textbox next line when hitting enter key?
Thanks for the suggestion. While searching in properties about 'OnKeyPress', I found a property that exactly fits my question, the property is called 'Enter Key Behaviour' and setting that to 'New Line in Field' did the job. Hope this will be a help for any other new bee like me looking for similiar solution.
Thanks again.
Last edited by sprasoon; Aug 23rd, 2007 at 11:32 PM.
Reason: Typo correction
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|