CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Displaying Two Fields from Lookup Table

Print topic Send  topic

Author Message
Don
Posted: 04/08/2002, 1:12 PM

How can I display two different fields on a form when the info for the two fields is coming from a lookup table? That is, I have a form for one table, but I want the part that's visible on the screen (a select box in one case and a URL in another) to be from two fields in a different table. I know how to do it manually but how and where within CodeCharge?
Andrew B
Posted: 04/08/2002, 6:34 PM

The info you gave is a little vague, but here are my suggestions :

If you are using SQL Server, create a view. In that view just use the + operator to concatenate string (ie. FirstName + ' ' + LastName). Beware, though. This will concatenate to a null if any of the fields is null. You can turn this off though, read the Books OnLine.

If you are using access, construct a query and call that. I think you use the & operate to concatenate strings in access SQL.

Either of these methods will work in a raw SQL query as well, but that means typing it by hand into codecharge's custom sql windows.

If you need any help, post yer email up here or just reply :)
Don
Posted: 03/10/2003, 2:29 PM

This worked. Thanks

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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