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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Text Boxes



 
 
Thread Tools Display Modes
  #1  
Old October 20th, 2004, 07:17 PM
J. Toews
external usenet poster
 
Posts: n/a
Default Text Boxes

Hi

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In Access
97 I used to be able to press the enter key (hard return) to get a portion of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all the
text stays on the same line. Using multiple text boxes for each line is not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were developed in
97 and converted to 2002 still work fine but when I try to create a new text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong here..

Thanking you in advance!!

JT
  #2  
Old October 20th, 2004, 07:55 PM
Rick B
external usenet poster
 
Posts: n/a
Default

CTRL+ENTER


"J. Toews" wrote in message
...
Hi

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In

Access
97 I used to be able to press the enter key (hard return) to get a portion

of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all

the
text stays on the same line. Using multiple text boxes for each line is

not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were developed in
97 and converted to 2002 still work fine but when I try to create a new

text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong

here..

Thanking you in advance!!

JT



  #3  
Old October 20th, 2004, 08:07 PM
J. Toews
external usenet poster
 
Posts: n/a
Default

Sorry that's the first thing I tried and it doesn't work!! It puts that box
character at the point where I select Ctl-Enter and the rest of the text
doesn't move to the next line.. Anybody else got something better..

"Rick B" wrote:

CTRL+ENTER


"J. Toews" wrote in message
...
Hi

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In

Access
97 I used to be able to press the enter key (hard return) to get a portion

of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all

the
text stays on the same line. Using multiple text boxes for each line is

not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were developed in
97 and converted to 2002 still work fine but when I try to create a new

text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong

here..

Thanking you in advance!!

JT




  #4  
Old October 20th, 2004, 08:23 PM
fredg
external usenet poster
 
Posts: n/a
Default

On Wed, 20 Oct 2004 12:07:04 -0700, J. Toews wrote:

Sorry that's the first thing I tried and it doesn't work!! It puts that box
character at the point where I select Ctl-Enter and the rest of the text
doesn't move to the next line.. Anybody else got something better..

"Rick B" wrote:

CTRL+ENTER

"J. Toews" wrote in message
...
Hi

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In

Access
97 I used to be able to press the enter key (hard return) to get a portion

of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all

the
text stays on the same line. Using multiple text boxes for each line is

not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were developed in
97 and converted to 2002 still work fine but when I try to create a new

text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong

here..

Thanking you in advance!!

JT




Set the Enter Key Behavior property to New Line in Field.
It's on the Control's property sheet's Other tab.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
  #5  
Old October 20th, 2004, 08:39 PM
J. Toews
external usenet poster
 
Posts: n/a
Default

Hi Fred,

You don't have that property available on a text box in a report, only on a
form. I am working with reports.

"fredg" wrote:

On Wed, 20 Oct 2004 12:07:04 -0700, J. Toews wrote:

Sorry that's the first thing I tried and it doesn't work!! It puts that box
character at the point where I select Ctl-Enter and the rest of the text
doesn't move to the next line.. Anybody else got something better..

"Rick B" wrote:

CTRL+ENTER

"J. Toews" wrote in message
...
Hi

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In
Access
97 I used to be able to press the enter key (hard return) to get a portion
of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all
the
text stays on the same line. Using multiple text boxes for each line is
not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were developed in
97 and converted to 2002 still work fine but when I try to create a new
text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong
here..

Thanking you in advance!!

JT



Set the Enter Key Behavior property to New Line in Field.
It's on the Control's property sheet's Other tab.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

  #6  
Old October 20th, 2004, 09:37 PM
Rick Brandt
external usenet poster
 
Posts: n/a
Default

"J. Toews" wrote in message
...
Hi

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In

Access
97 I used to be able to press the enter key (hard return) to get a

portion of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all

the
text stays on the same line. Using multiple text boxes for each line is

not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were developed

in
97 and converted to 2002 still work fine but when I try to create a new

text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong

here..

Somehow you are dropping a character. Access only recognizes the two
character combination of Chr(13) followed by Chr(10) which are
CarriageReturn and LineFeed respectively. A field that contains only one
or the other will behave as you are seeing with a small box which is what
Access displays any time it encounters a non-printable character.

I have no idea why that would be happening though.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com




  #7  
Old October 20th, 2004, 10:28 PM
Rick B
external usenet poster
 
Posts: n/a
Default

You can use Chr(13) & Chr(10) between strings to insert a return. Not sure
if that helps you or not.

= [SomeField1] & Chr(13) & Chr(10) & [SomeField2]


Hope that helps,

Rick B


"J. Toews" wrote in message
news
Sorry that's the first thing I tried and it doesn't work!! It puts that

box
character at the point where I select Ctl-Enter and the rest of the text
doesn't move to the next line.. Anybody else got something better..

"Rick B" wrote:

CTRL+ENTER


"J. Toews" wrote in message
...
Hi

We recently switched from Access 97 to Access 2002 and I have been

having
trouble recreating what I used to do in Access 97 with text boxes. In

Access
97 I used to be able to press the enter key (hard return) to get a

portion
of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and

all
the
text stays on the same line. Using multiple text boxes for each line

is
not
an option in my situation. Below is an example of what I would do in

the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World

What drive me nuts is the text boxes in the reports that were

developed in
97 and converted to 2002 still work fine but when I try to create a

new
text
box in 2002 with text on multiples line it doesn't work!

Can some please give my head a shake and tell me what I am doing wrong

here..

Thanking you in advance!!

JT






  #8  
Old October 20th, 2004, 11:00 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

J. Toews wrote:

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In Access
97 I used to be able to press the enter key (hard return) to get a portion of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all the
text stays on the same line. Using multiple text boxes for each line is not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World



It doesn't come out that way for me when I type
="Hello{Ctrl+Enter}World"
in the control source property of a text box.

If worse comes to worse, you could also use the less
convenient
="Hello" & Chr(13) & Chr(10) & "World"

OTOH, If you want to display a constant string, why not use
a Label control instead?

--
Marsh
MVP [MS Access]
  #9  
Old October 21st, 2004, 05:25 PM
J. Toews
external usenet poster
 
Posts: n/a
Default


OTOH, If you want to display a constant string, why not use
a Label control instead?

--
Marsh
MVP [MS Access]


Because I am not displaying a constant string. I have to call functions
from the text boxes to provide me with the proper dates because the reports
produce year over year - month over month comparisons, based on what date
period the user wants to see a report for. You can not call a function from
a label, at least in Access 97 you couldn't, didn't try it with 2002.. So
the column headers have to be set so they can show any date. It saves me
from having to change labels in 30 different reports everytime a user wants
to see a report with different date comparisons becasue they supply the
parameters and my functions set the text box based on their parameters.

eg. in Access 97 my control source on my text boxes would look something
like this.

=SetPrevYear() & " =SetCurrYear() & "
Expenses" Expenses"

which prints as:

2003/04 2004/05
Expenses Expenses

There is always a method to my madness..

  #10  
Old October 21st, 2004, 05:26 PM
J. Toews
external usenet poster
 
Posts: n/a
Default

Thanks Marshall!! Your method works. I should have know.. I tried using
chr(10) and chr(13) but not at the same time.. But I have to say just
hitting the enter key in Access 97 is a lot less hastle!!.. Must be a new
FEATURE or IMPROVEMENT!!
"Marshall Barton" wrote:

J. Toews wrote:

We recently switched from Access 97 to Access 2002 and I have been having
trouble recreating what I used to do in Access 97 with text boxes. In Access
97 I used to be able to press the enter key (hard return) to get a portion of
text to move to the next line. In Access 2002 it doesn't seem to work
anymore. All I get is a box character where I put the hard return and all the
text stays on the same line. Using multiple text boxes for each line is not
an option in my situation. Below is an example of what I would do in the
expression builder for the text box in Access 97.

eg.

="Hello
World"

would come out as

Hello
World

But in Access 2002 it comes out as

Hello(box character) World



It doesn't come out that way for me when I type
="Hello{Ctrl+Enter}World"
in the control source property of a text box.

If worse comes to worse, you could also use the less
convenient
="Hello" & Chr(13) & Chr(10) & "World"

OTOH, If you want to display a constant string, why not use
a Label control instead?

--
Marsh
MVP [MS Access]

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Concatenatd fields in a query for a searching form Marc Running & Setting Up Queries 8 October 19th, 2004 08:49 PM
A challenging question on text boxes-word 2000 fw76 Page Layout 16 October 18th, 2004 11:45 PM
Text Boxes on Charts not showing up Sue Charts and Charting 1 February 10th, 2004 07:28 PM
Printing Text Boxes with a chart Jon Peltier Charts and Charting 1 January 12th, 2004 01:51 PM
Graphic with text boxes Bourbon Charts and Charting 1 January 9th, 2004 04:22 PM


All times are GMT +1. The time now is 11:15 AM.


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