"Avi Lazar" <al****@richardson.com> wrote in message
news:40*********************@news.frii.net...
So I can better understand. Lets say my MS access Key field is
"CompanyID". When the person clicks on the top page link, it looks for
the "CompanyID". Once it finds the "CompanyID", it takes all of the
data in that entry and places it in page2.asp (the bottom page).
If the "CompanyID" has the following fields "CompanyName",
"CompanyStart", "CompanyEnd" in the record....how would your link look
like? I am assuming that the page 1 links just open up a new page (in
the bottom frame) which is page2.asp
TIA,
Avi
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
ok, (assuming using VBscript, and much simplified syntax)
page1.asp has the link "page2.asp?companyID=companyA"
page2.asp could contain
searchstr = request.querystring("companyID") --- This reads in the search
criteria from the query string
sqlQuery = "SELECT * FROM tablename WHERE companyID = " & "'" & searchstr &
"'" --- retrieve data from database for companyID = searchstr (in this case
companyA)
strcompanyname = rs("comapnyName")
strcompanyStart = rs("companyStart")
etc etc
so, what we've done here is query the database table (called tablename) for
all the details relating to a company that has the companyID of companyA.
Then placed this data into strings which we can response.write wherever we
want them to appear in page2.asp
hope that makes sense to you, let me know if you need more help