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  

Slide to left?



 
 
Thread Tools Display Modes
  #1  
Old August 12th, 2009, 02:12 PM posted to microsoft.public.access.reports
Laurel
external usenet poster
 
Posts: 214
Default Slide to left?

I have three text boxes in the first line of a directory. Their contents
a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma? All
three text boxes have both "Can Shrink" and "Can Grow" set to "Yes," but
that doesn't seem to do the trick.

TIA
LAS


  #2  
Old August 12th, 2009, 02:37 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Slide to left?

Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their contents
a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to "Yes,"
but that doesn't seem to do the trick.

TIA
LAS



  #3  
Old August 12th, 2009, 03:19 PM posted to microsoft.public.access.reports
Laurel
external usenet poster
 
Posts: 214
Default Slide to left?

My problem there is that the last name has to be bolded, and the first names
not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their contents
a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to "Yes,"
but that doesn't seem to do the trick.

TIA
LAS





  #4  
Old August 12th, 2009, 04:02 PM posted to microsoft.public.access.reports
Darrell Childress[_2_]
external usenet poster
 
Posts: 17
Default Slide to left?

What about =Trim([LastName]) This will remove any leading or ending
spaces.

Laurel wrote:
My problem there is that the last name has to be bolded, and the first names
not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their contents
a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to "Yes,"
but that doesn't seem to do the trick.

TIA
LAS




  #5  
Old August 12th, 2009, 04:03 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Slide to left?

Laurel,
I haven't used this, but Stephan Lebans has an app that should allow
you to mix Bold text and Normal text.
http://www.lebans.com/mixbold-plain.htm
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Laurel" wrote in message
...
My problem there is that the last name has to be bolded, and the first
names not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their contents
a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to "Yes,"
but that doesn't seem to do the trick.

TIA
LAS







  #6  
Old August 12th, 2009, 05:03 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Slide to left?

You can use the Print method of the report in the On Format event of the
report section. Assumeing you have two invisible text boxese in the section
that are bound to the LastName and FirstName. This code will bold only the
last name.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.CurrentY = Me.LastName.Top
Me.CurrentX = Me.LastName.Left
Me.FontBold = True
Me.Print Me.LastName
Me.FontBold = False
Me.CurrentY = Me.LastName.Top
Me.CurrentX = Me.CurrentX + 30
Me.Print Me.FirstName
End Sub

--
Duane Hookom
Microsoft Access MVP


"Laurel" wrote:

My problem there is that the last name has to be bolded, and the first names
not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their contents
a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to "Yes,"
but that doesn't seem to do the trick.

TIA
LAS






  #7  
Old August 12th, 2009, 06:23 PM posted to microsoft.public.access.reports
Laurel
external usenet poster
 
Posts: 214
Default Slide to left?

Well, I was certainly hoping that this approach would work, being the
simplest, but when I put the function on I get #Error instead of the last
name in all rows. The following was cut from the control source and pasted
here. I created it by choosing the function and then choosing the field.
In other words, no typos. What am I doing wrong?

=Trim([Last_Name])

"Darrell Childress" wrote in message
...
What about =Trim([LastName]) This will remove any leading or ending
spaces.

Laurel wrote:
My problem there is that the last name has to be bolded, and the first
names not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their
contents a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to
"Yes," but that doesn't seem to do the trick.

TIA
LAS




  #8  
Old August 12th, 2009, 06:46 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Slide to left?

I expect the name of your text box is the name of a field. This would cause
an error.

This solution won't work anyway based on your requirements. A text box will
not shrink horizontally, only vertically.

--
Duane Hookom
Microsoft Access MVP


"Laurel" wrote:

Well, I was certainly hoping that this approach would work, being the
simplest, but when I put the function on I get #Error instead of the last
name in all rows. The following was cut from the control source and pasted
here. I created it by choosing the function and then choosing the field.
In other words, no typos. What am I doing wrong?

=Trim([Last_Name])

"Darrell Childress" wrote in message
...
What about =Trim([LastName]) This will remove any leading or ending
spaces.

Laurel wrote:
My problem there is that the last name has to be bolded, and the first
names not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their
contents a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to
"Yes," but that doesn't seem to do the trick.

TIA
LAS





  #9  
Old August 12th, 2009, 08:20 PM posted to microsoft.public.access.reports
Laurel
external usenet poster
 
Posts: 214
Default Slide to left?

=[LastName] & ", " & [FirstName]

I took this as the control source from a report in one of the databases Al
Campagna recommended. Why does this work, but trim([Last_Name]) in my case,
doesn't? You can concatenate fields but you can't act on them with
functions? What's the rule?

"Duane Hookom" wrote in message
...
I expect the name of your text box is the name of a field. This would cause
an error.

This solution won't work anyway based on your requirements. A text box
will
not shrink horizontally, only vertically.

--
Duane Hookom
Microsoft Access MVP


"Laurel" wrote:

Well, I was certainly hoping that this approach would work, being the
simplest, but when I put the function on I get #Error instead of the last
name in all rows. The following was cut from the control source and
pasted
here. I created it by choosing the function and then choosing the field.
In other words, no typos. What am I doing wrong?

=Trim([Last_Name])

"Darrell Childress" wrote in message
...
What about =Trim([LastName]) This will remove any leading or ending
spaces.

Laurel wrote:
My problem there is that the last name has to be bolded, and the first
names not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their
contents a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the
comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to
"Yes," but that doesn't seem to do the trick.

TIA
LAS







  #10  
Old August 12th, 2009, 08:41 PM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default Slide to left?

Laurel,
Read Duane's previous response...

= Trim(Last_Name) will work... as long as you don't name that control
"Last_Name"

The Name of any calculated field can not match the name of any element
in that calculation.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."


"Laurel" wrote in message
...
=[LastName] & ", " & [FirstName]

I took this as the control source from a report in one of the databases Al
Campagna recommended. Why does this work, but trim([Last_Name]) in my
case, doesn't? You can concatenate fields but you can't act on them with
functions? What's the rule?

"Duane Hookom" wrote in message
...
I expect the name of your text box is the name of a field. This would
cause
an error.

This solution won't work anyway based on your requirements. A text box
will
not shrink horizontally, only vertically.

--
Duane Hookom
Microsoft Access MVP


"Laurel" wrote:

Well, I was certainly hoping that this approach would work, being the
simplest, but when I put the function on I get #Error instead of the
last
name in all rows. The following was cut from the control source and
pasted
here. I created it by choosing the function and then choosing the
field.
In other words, no typos. What am I doing wrong?

=Trim([Last_Name])

"Darrell Childress" wrote in message
...
What about =Trim([LastName]) This will remove any leading or ending
spaces.

Laurel wrote:
My problem there is that the last name has to be bolded, and the
first
names not. I don't know how to bold just part of a calculation.

"Al Campagna" wrote in message
...
Laurel,
Have you tried concatenation?
= [LastName] & ", " & [FirstName]
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your
life."

"Laurel" wrote in message
...
I have three text boxes in the first line of a directory. Their
contents a

!Last_Name =", " =fncFirstNames()

How can I get rid of the white space between !Last_Name and the
comma?
All three text boxes have both "Can Shrink" and "Can Grow" set to
"Yes," but that doesn't seem to do the trick.

TIA
LAS









 




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 12:50 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.