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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|