CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 concatenate firstname and surname in record form

Print topic Send  topic

Author Message
charles

Posts: 59
Posted: 04/04/2007, 12:02 AM

Hi All,
i am trying to concatenate the values of the firstname and surname field into a field fullname in a record form called student1.it works ok except that there is no space between the two field values.for example, if the value in first name is charles and the value in surname is John,
the fullname field is charlesjohn.I need it to put space between the first and surname, for example, charles john.

here is my before build insert code

dim first_name
dim surname
first_name=request.Form("first_name")
surname=request.form("surname")
student1.full_name.value=( first_name & surname)
Can someone kindly point out what could be wrong?
Regards,
Charles

View profile  Send private message
amcfadyen

Posts: 8
Posted: 04/04/2007, 1:30 AM

Hi Charles

A space can't be implied in your code, so you have to be specific.

Try: student1.full_name.value=( first_name & " " & surname)


Good luck!

Alistair
View profile  Send private message
charles

Posts: 59
Posted: 04/04/2007, 11:30 AM

Thanks alistair,
Using the code as adjusted by you has yielded the desired result.
Thanks for your response.
Regards,
Charles
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.