Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset Query Help

Status
Not open for further replies.

neilmunn

Technical User
Jan 9, 2001
5
0
0
GB
Hi

I am trying to setup an asp page which will display meeting details.

At the moment I have got two pages. One displaying normal meetings and another displaying private meetings (using a cookie). Is there anyway that I can combien these onto one page?

Here is my code:

SELECT *
FROM meetings, clients, people
WHERE PeopleID = meetingPeople AND meetingClientID = ClientID AND PeopleClientID = varCompany AND ClientCompanyID = varCompanyID AND meetingprivate = false
ORDER BY meetingTime

varCompany | 1 | Session("Company")
varCompanyID | 1 | Session("Company")

---

SELECT *
FROM meetings, clients, people
WHERE PeopleID = meetingPeople AND meetingClientID = ClientID AND PeopleClientID = varCompany AND ClientCompanyID = varCompanyID AND meetingprivate = true and PeopleID = MMColParam
ORDER BY meetingTime

varCompany | 1 | Session("Company")
varCompanyID | 1 | Session("Company")
MMColParam | 1 | Request.Cookies("Synergy")("UserID")

Thanks
Neil Munn
neil.munn@hotpop.com
 
You can have 2 recordsets on one page.

But why not have 1 recordset sorted on meetingprivate?

Cheech The secret of life is honesty and fair dealing. If you can fake that, you've got it made.
Groucho Marx (1895-1977)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top