DEFAULT VALUE QUESTION

S

steve goodrich

I have a form with two memo fields which I would like to add a default
sentence to when a new record opens. I can do this in the memos property
sheet ok but, is there a way I can force the sentence on two or three rows
instead of just one. Or is there a better way of achieving this (without
code please - still learning)
many thanks
Steve Goodrich
 
B

Baz

steve goodrich said:
I have a form with two memo fields which I would like to add a default
sentence to when a new record opens. I can do this in the memos property
sheet ok but, is there a way I can force the sentence on two or three rows
instead of just one. Or is there a better way of achieving this (without
code please - still learning)
many thanks
Steve Goodrich

Set your Default Value property to something like this:

"Line 1" & Chr(13) & Chr(10) & "Line 2"
 
S

steve goodrich

Hi
Thanks for the help, It works ok but I don't understand why. Could you tell
me the reason for typing - chr(13) and chr(10)
Thanks
Steve
 
F

fredg

Hi
Thanks for the help, It works ok but I don't understand why. Could you tell
me the reason for typing - chr(13) and chr(10)
Thanks
Steve

You said you wanted the text on several lines. chr(13) & chr(10) (in
that order) tells Access to make a new line. chr(13) tells it to go
back to the left margin of the control. chr(10) tells it to line feed.
In Access you need both.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top