Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Displaying two related tables on one page
Old 03-30-2005, 06:35 PM Displaying two related tables on one page
Junior Talker

Posts: 3
Trades: 0
I am a complete ASP novice and I’m trying to create a dynamic job/project status page on my website.

I have a dynamic page on my website driven by an Access database (data.mdb). This page shows the details of a record from the database table (projectsTbl). The fields in the table include one for the job number (smcNumber).

In the database there is second table called diaryTbl. This table contains several fields including one for the job number (smcNumber). The job number field is common between both tables.

In our database the first table (projectsTbl) contains the details of each project along with a unique job number (smcNumber). The second table (diaryTbl) contains the diary/events for each project and uses the same unique job number to sort out which diary entries belong to which project. As the diary entries are in a separate table it doesn’t matter whether one project has just a couple of diary entries or fifty.

When the page is called it displays that projects data based on the job number from the projectsTbl table and all the diary entries with the same job number (smcNumber) from the diaryTbl table.

I know how to ‘hard code’ a query to only display certain records depending on a ‘hard written’ selection but I don’t know how to make the query choose records from a variable query (i.e. the job number which will be different depending on which job is being looked at).

Someone suggested creating a variable from the job number (from the first table) and putting that variable into the query but I don’t know how to do that.

Can anyone help?
scimitar1971 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-30-2005, 09:33 PM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Can you post what you have so far? If it's big, then just the relavant bits
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to Displaying two related tables on one page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33975 seconds with 12 queries