A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

MS Access Shift-Enter



 
 
Thread Tools Display Modes
  #1  
Old August 23rd, 2008, 01:57 AM posted to microsoft.public.access.tablesdbdesign
LD
external usenet poster
 
Posts: 30
Default MS Access Shift-Enter

I work with MS Access version 2000.
I would like to use Shift-Enter in a Macro as a part of SetValue to create
new lines in a memo-type textbox.
I tried by adding chr$(10) in the text, but it did not create the new line.
It printed a "little box" in the text line.
I would highly appreciate it if someone can help.
LD
  #2  
Old August 23rd, 2008, 02:07 AM posted to microsoft.public.access.tablesdbdesign
Rick Brandt
external usenet poster
 
Posts: 4,354
Default MS Access Shift-Enter

LD wrote:
I work with MS Access version 2000.
I would like to use Shift-Enter in a Macro as a part of SetValue to
create new lines in a memo-type textbox.
I tried by adding chr$(10) in the text, but it did not create the new
line. It printed a "little box" in the text line.
I would highly appreciate it if someone can help.
LD


You need both Chr(13) & Chr(10) and they must be in that order.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com


  #3  
Old August 23rd, 2008, 05:31 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default MS Access Shift-Enter

On Fri, 22 Aug 2008 17:57:01 -0700, LD wrote:

I work with MS Access version 2000.
I would like to use Shift-Enter in a Macro as a part of SetValue to create
new lines in a memo-type textbox.
I tried by adding chr$(10) in the text, but it did not create the new line.
It printed a "little box" in the text line.
I would highly appreciate it if someone can help.
LD


You can use Ctrl-Enter and Access will insert a CR-LF pair (Chr(13) followed
by Chr(10)) all by itself without code, and without interfering with the
builtin function of Shift-Enter to save a record; or you can set the "Enter
Key Behavior" property of the textbox bound to the memo field to "New Line In
Field".
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.