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 -> ASP

 ¿ advanced 2 textcolumns in listbox ?

Print topic Send  topic

Author Message
nrw-heute

Posts: 12
Posted: 03/15/2004, 3:42 AM

After a first expirience with:

Listbox in Record Form
http://forums.codecharge.com/posts.php?post_id=44127

I've done the following:

2 textcolumns in listbox
http://forums.codecharge.com/posts.php?post_id=44114

with this statement:
SELECT numgruppe, (typgruppe + ' - ' + gruppe) FROM gruppen ORDER BY gruppe

My problem is now that the value of typgruppe is an integer wich points to a record in another table and I don't want to show the number but the the appropriate field from the second table.

How is this done best in CCS?
_________________
¤free coding¤
View profile  Send private message
DonB
Posted: 03/15/2004, 6:47 AM

Just join gruppe to the other table in your query, then display the field
from your other table.

--
DonB

http://www.gotodon.com/ccbth


"nrw-heute" <nrw-heute@forum.codecharge> wrote in message
news:6405596bfc54e2@news.codecharge.com...
> After a first expirience with:
>
> Listbox in Record Form
> http://forums.codecharge.com/posts.php?post_id=44127
>
> I've done the following:
>
> 2 textcolumns in listbox
> http://forums.codecharge.com/posts.php?post_id=44114
>
> with this statement:
>
SELECT numgruppe, (typgruppe + ' - ' + gruppe) FROM gruppen ORDER BY  
gruppe
>
> My problem is now that the value of typgruppe is an integer wich points to
a record in another table and I don't want to show the number but the the
appropriate field from the second table.
>
> How is this done best in CCS?
> _________________
> ¤free coding¤
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

nrw-heute

Posts: 12
Posted: 03/15/2004, 7:04 AM

Could you explain that a bit in detail by the given SQL Statement?

  
SELECT numgruppe, (typgruppe + ' - ' + gruppe) FROM gruppen ORDER BY gruppe  

The field 'typgruppe' contains a number and this number is a recordfield called 'numtyp' from a table called 'typen' wich from I need the field 'typ' to be displayed instead of 'typgruppe'
_________________
¤free coding¤
View profile  Send private message
nrw-heute

Posts: 12
Posted: 03/15/2004, 10:24 AM

O.k. O.k. I should do my SQL homework....:-/

It works, I did it this way:
SELECT (typen.typ + ' - ' + gruppen.gruppe), gruppen.numgruppe FROM gruppen, typen WHERE gruppen.typgruppe = typen.numtyp ORDER BY gruppen.gruppe

_________________
¤free coding¤
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.