enter ctrl+enter key into a text box 
Author Message
 enter ctrl+enter key into a text box

Hello Access World:

  Is there a way to enter ctrl+enter into a text box
programmatically?

  Thanks.

Quin



Wed, 23 Nov 2005 02:07:51 GMT  
 enter ctrl+enter key into a text box


Quote:
>Hello Access World:

>  Is there a way to enter ctrl+enter into a text box
>programmatically?

What's the context? What is this textbox bound to; what's in it
already; what event do you want to trigger this?

The NewLine character in VBA is Chr(13)&Chr(10), and is encoded by the
VBA constants vbCrLf and vbNewLine. You can append one of these
constants to the text in the textbox. You can also set a textbox's
Enter Key Behavior to "new line in textbox" if that would help.

                  John W. Vinson[MVP]    
    Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public



Wed, 23 Nov 2005 03:32:46 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Tabbing from text box to text box using the enter key

2. Enter key in a text box.

3. Enter Key in text boxes

4. Disable "ENTER" key in text box

5. Beep in text box when hit enter key

6. Doest the text box ignore the Enter key on purpose

7. Help: Text box -- multi-line -- Enter key behavior

8. Why does ENTER key beep in text boxes?

9. input box (text) and enter key

10. Text box and enter key

11. Enter Key Behavior in VB 5.0 Text Box

12. Text Box and Enter Key

 

 
Powered by phpBB® Forum Software