CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> CodeCharge Studio -> ColdFusion

 Creating Listbox inside CCS

Print topic Send  topic

Author Message
Graham Pearson
Posted: 09/20/2004, 6:24 AM

Does anyone know how to combine two fields from a table to populate
the text portion of a listbox using coldfusion. I have first_name and
last_name fields seperated within my table and when I display the
listbox selection I would like it to show Last_Name, First_Name

Any Ideas?

Graham Pearson, System Administrator / Web Developer
Northern Indiana Educational Services Center
56535 Magnetic Drive, Mishawaka IN 46544

Posts: 283
Posted: 09/29/2004, 11:07 AM

Depending of the database
In oracle select last_name || ', ' || first_name fullname, myid from mytable
In access select last_name & ', ' & first_name as fullname, myid from mytable

Now you can reference the text portion as fullname in the ccs list builder.
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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.

Home   |    Search   |    Members   |    Register   |    Login

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