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  

Combining forename and surname fields in report



 
 
Thread Tools Display Modes
  #1  
Old April 16th, 2010, 03:43 PM posted to microsoft.public.access.reports
SamMexico via AccessMonster.com
external usenet poster
 
Posts: 26
Default Combining forename and surname fields in report

Hi All, I've been searching for about an hour to resolve a little problem
with my reports and need some help...

My report has a forename field and surname field that come directly from the
table, the problem is that there is a gap between the two fields and not all
of the data is showing up in the report.

Is it possible to combine the two fields so that the full name displays
smoothly? The surname is in upper case but if this changes it doesn't really
matter...

Please help!

Sam

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/201004/1

  #2  
Old April 16th, 2010, 04:49 PM posted to microsoft.public.access.reports
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Combining forename and surname fields in report

Sam -

On your report use a field with values like this:

=[forename] & " " & [surname]

(but use your field names)

--
Daryl S


"SamMexico via AccessMonster.com" wrote:

Hi All, I've been searching for about an hour to resolve a little problem
with my reports and need some help...

My report has a forename field and surname field that come directly from the
table, the problem is that there is a gap between the two fields and not all
of the data is showing up in the report.

Is it possible to combine the two fields so that the full name displays
smoothly? The surname is in upper case but if this changes it doesn't really
matter...

Please help!

Sam

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/201004/1

.

  #3  
Old April 16th, 2010, 06:26 PM posted to microsoft.public.access.reports
SamMexico via AccessMonster.com
external usenet poster
 
Posts: 26
Default Combining forename and surname fields in report

So I could delete the surname field in the report and add that code to the
forename field? Do the values you mention go in the properties of the surname
field in that case?

Thanks for responding - that's twice you've helped me out!

Sam

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/201004/1

  #4  
Old April 16th, 2010, 06:58 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Combining forename and surname fields in report

ONLY if you rename the control. IF the control has the same name as a field,
you will get an error message.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

SamMexico via AccessMonster.com wrote:
So I could delete the surname field in the report and add that code to the
forename field? Do the values you mention go in the properties of the surname
field in that case?

Thanks for responding - that's twice you've helped me out!

Sam

  #5  
Old April 16th, 2010, 07:50 PM posted to microsoft.public.access.reports
SamMexico via AccessMonster.com
external usenet poster
 
Posts: 26
Default Combining forename and surname fields in report

Thanks John, I presume I'll find the control in the field properties...?

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/201004/1

  #6  
Old April 16th, 2010, 10:07 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Combining forename and surname fields in report

Reports have controls.
Controls have Control Source properties. A control source can be a reference
to a field or it can be an expression. Control's have a name property.

In a control, you can use the following as the source
=[FirstNameField] * " " & [LastNameField]

If the control's name property is FirstNameField, then Access will generate an
error as it won't "know" if you are attempting to refer to the field
FirstNameField in the table or to the control with the same name.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

SamMexico via AccessMonster.com wrote:
Thanks John, I presume I'll find the control in the field properties...?

  #7  
Old April 19th, 2010, 09:02 AM posted to microsoft.public.access.reports
SamMexico via AccessMonster.com
external usenet poster
 
Posts: 26
Default Combining forename and surname fields in report

Daryl and John, thanks for your help - it works perfectly now!

Sam

--
Message posted via http://www.accessmonster.com

 




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 07:11 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.