Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Recursive query in VBS / asp / access

Explorer ,
Aug 02, 2006 Aug 02, 2006

Copy link to clipboard

Copied

Hi All,
I hope someone can advise me here...

I have a page that pulls a record from my database and this is working fine.

But there is info in this recordset that is numerical and relates to another field in the recordset...

I need to grab this ID number and search the recordset or database and pull a field from the recordset/database and place it on my detail page along with the other data.

I need to do this around 30 times to build up some info on my page.

I have made a function that will do this for me but Im a little stuck on how to carry it off on an asp page as I need to place the returned values at certain places on the page and dont know if I should be setting Session Vars to hold my values that the recursicve query will return or do I do this another way?

Any thoughts or ideas on how i can do this would be appreciated.

I have also put my recursive function into and external include page to keep my main page less cluttered is this OK to do?

Many thanks
Tag

TOPICS
Server side applications

Views

349
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 02, 2006 Aug 02, 2006

Copy link to clipboard

Copied

Do a self-join on the table in your recordset; no function necessary.

"Tag2007" <webforumsuser@macromedia.com> wrote in message
news:eaq1m7$juo$1@forums.macromedia.com...
> Hi All,
> I hope someone can advise me here...
>
> I have a page that pulls a record from my database and this is working
> fine.
>
> But there is info in this recordset that is numerical and relates to
> another
> field in the recordset...
>
> I need to grab this ID number and search the recordset or database and
> pull a
> field from the recordset/database and place it on my detail page along
> with the
> other data.
>
> I need to do this around 30 times to build up some info on my page.
>
> I have made a function that will do this for me but Im a little stuck on
> how
> to carry it off on an asp page as I need to place the returned values at
> certain places on the page and dont know if I should be setting Session
> Vars to
> hold my values that the recursicve query will return or do I do this
> another
> way?
>
> Any thoughts or ideas on how i can do this would be appreciated.
>
> I have also put my recursive function into and external include page to
> keep
> my main page less cluttered is this OK to do?
>
> Many thanks
> Tag
>
>
>


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 02, 2006 Aug 02, 2006

Copy link to clipboard

Copied

Hi Lionstone,

I do not understand this table join in my recordset, can you explain this or show me a tutotial to explain it please.
Thanks
Tag

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 03, 2006 Aug 03, 2006

Copy link to clipboard

Copied

www.sqlcourse.com
www.sqlcourse2.com

"Tag2007" <webforumsuser@macromedia.com> wrote in message
news:ear0u4$1dp$1@forums.macromedia.com...
> Hi Lionstone,
>
> I do not understand this table join in my recordset, can you explain this
> or show me a tutotial to explain it please.
> Thanks
> Tag


Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 03, 2006 Aug 03, 2006

Copy link to clipboard

Copied

LATEST
Thank you I will have a read through it.

I have it working with querys built up in my database but they are very complicated and want to simplify things.

Thanks again
Tag

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines