Auto Resize

G

George

I am creating a form letter to automatically address all my troops and
include their names per report. What I want to resolve is how to add their
names without any gaps between the fields considering each name and rank is a
different length, is that possible.

So it would look something like below ( Rank, First Name, Last Name, are
fields in my table.

Memorandum For: Rank First Name Last Name

Thanks - George
 
M

Marshall Barton

George said:
I am creating a form letter to automatically address all my troops and
include their names per report. What I want to resolve is how to add their
names without any gaps between the fields considering each name and rank is a
different length, is that possible.

So it would look something like below ( Rank, First Name, Last Name, are
fields in my table.

Memorandum For: Rank First Name Last Name


Use a single text box with an expression like:

=Rank & " " & [First Name] & " " [Last Name]
 
G

George

Perfect - Thanks


Marshall Barton said:
George said:
I am creating a form letter to automatically address all my troops and
include their names per report. What I want to resolve is how to add their
names without any gaps between the fields considering each name and rank is a
different length, is that possible.

So it would look something like below ( Rank, First Name, Last Name, are
fields in my table.

Memorandum For: Rank First Name Last Name


Use a single text box with an expression like:

=Rank & " " & [First Name] & " " [Last Name]
 
B

Bipbop

This is exactly what I want, (just first names and last name), but when I
create a text box in my report (certificate), and enter

=First Names & " " [Last Name]

I receive the error:

You have entered an operand without an operator.

What am I doing wrong?
 
J

John Spencer

If your field names have spaces then you MUST surround them with square
brackets []. Also make sure you have spelled the names correctly and that
the control is NOT named the same as the fields you are using in the
expression.

=[First Names] & " " [Last Name]

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

Bipbop said:
This is exactly what I want, (just first names and last name), but when I
create a text box in my report (certificate), and enter

=First Names & " " [Last Name]

I receive the error:

You have entered an operand without an operator.

What am I doing wrong?

Marshall Barton said:
Use a single text box with an expression like:

=Rank & " " & [First Name] & " " [Last Name]
 
B

Bipbop

Thanks John

This still doesn't work.
The Control (text box) is named: Trainees Name
and I am now using the expression: =[First Names] & " " [Last Name]

I still get the error:
The expression you entered contains an invalid syntax
You may have entered an operand without an operator

John Spencer said:
If your field names have spaces then you MUST surround them with square
brackets []. Also make sure you have spelled the names correctly and that
the control is NOT named the same as the fields you are using in the
expression.

=[First Names] & " " [Last Name]

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

Bipbop said:
This is exactly what I want, (just first names and last name), but when I
create a text box in my report (certificate), and enter

=First Names & " " [Last Name]

I receive the error:

You have entered an operand without an operator.

What am I doing wrong?

Marshall Barton said:
Use a single text box with an expression like:

=Rank & " " & [First Name] & " " [Last Name]
 
R

Rick Brandt

Bipbop said:
Thanks John

This still doesn't work.
The Control (text box) is named: Trainees Name
and I am now using the expression: =[First Names] & " " [Last Name]

I still get the error:
The expression you entered contains an invalid syntax
You may have entered an operand without an operator

You need two ampersands.

=[First Names] & " " & [Last Name]
 
B

Bipbop

That's it, thank you Rick

Rick Brandt said:
Bipbop said:
Thanks John

This still doesn't work.
The Control (text box) is named: Trainees Name
and I am now using the expression: =[First Names] & " " [Last Name]

I still get the error:
The expression you entered contains an invalid syntax
You may have entered an operand without an operator

You need two ampersands.

=[First Names] & " " & [Last Name]
 

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