Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-27-2012, 10:36 PM   PM User | #1
tonysandhu3
New to the CF scene

 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
tonysandhu3 is an unknown quantity at this point
Angry Concate Multiple Rows

Hello,

I have a table something like this:
Category .. Item Number .. Item Description
Item1 ...... Number 1 ....... Description1
Item1 ...... Number 2 ....... Description2
Item2 ...... Number 3 ....... Description1
Item3 ...... Number 1 ....... Description3

It needs to output some thing like this:
Item1, Number1, Number2 .. Description1, Description2
Item2, Number3... Description1
Item3, Number1... Description3

The output info will go into Dropdowns for all three fields in a form.

Any help is extremely useful, stuck on this issue for few weeks. Could not find any thing online.

I am programming in classic asp and Microsoft Access DB.
tonysandhu3 is offline   Reply With Quote
Old 06-28-2012, 03:07 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,210
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
??? Do you mean your DATABASE table looks like that? Or your HTML <table> does?

If you mean the DATABASE table, then are you saying you need to have
Code:
<tr>
    <td>Item1</td>
    <td><select ...>
        <option>Number 1</option>
        <option>Number 2</option>
        </select>
    </td>
    <td><select ...>
        <option>Description 1</option>
        <option>Description 2</option>
        </select>
    </td>
</tr>
in the HTML output?
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Old 06-28-2012, 03:31 AM   PM User | #3
tonysandhu3
New to the CF scene

 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
tonysandhu3 is an unknown quantity at this point
Thanks for the reply, I did figure it out.
tonysandhu3 is offline   Reply With Quote
Reply

Bookmarks

Tags
access, asp, classic asp, concate, microsoft access

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:28 AM.


Advertisement
Log in to turn off these ads.