CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 display 2 fields on record form

Print topic Send  topic

Author Message
libraent

Posts: 11
Posted: 04/18/2005, 3:08 PM

I Found instructions for displaying 2 fields as one on a grid, what I want to do is display it on a record form.

Currently I have:
Control Source: VolunteerID
Data Source Type: Table/View
Data Source: Volunteers
Bound Column: VolunteerID
Text Column: VolunteerFirstName
Data Type: Integer

What I need is the first and last names to display as a drop down box. Can someone help me with this?

Thanks!

_________________
Thanks,

Shane Taylor
Libra Enterprises
View profile  Send private message
Nicole

Posts: 586
Posted: 04/19/2005, 2:39 AM

Hello,
It could be done via sql query. Use custom SQL as data source for your listbox. As you know you it should select Bound Column field and text Column field. You can use string functions specific for your database to concatenate two or more columns to be selected for Text Column. E.g. for MySQL query could be like
Select user_id, concat(first_name, ' ', last_name) as user_name from user_table


_________________
Regards,
Nicole
View profile  Send private message
libraent

Posts: 11
Posted: 04/21/2005, 6:28 PM

Thank you so much Nicole! This works:

Select concat(VolunteerFirstName, ' ', VolunteerLastName) as VolunteerID from Volunteers
_________________
Thanks,

Shane Taylor
Libra Enterprises
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.