SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old June 2nd, 2004, 05:10 PM
uksheep uksheep is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 uksheep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
lookup tables and querys

i'm writing a query for a travel company database.
it consists of querying to find out which clients has booked with selected companys.
the comapnys are selected from a form which has 4 lookup boxes on it (cruise1, cruise2, cruise3, cruise4) these update to a table multiplecruises,
the table keeps the primary key number of each selected cruise.
i've written the query and it works except that it won't take the data from multiplecruises
ie
WHERE CruiseData.CruiseOperator = MultipleCruises.Cruise1 or CruiseData.CruiseOperator = MultipleCruises.Cruise2 and so on.

is this possible or do i have to find a way around it?

at the moment when i run the query it askes me to input values for cruise1-4 nd then works fine, i need it to take values from my table.

Reply With Quote
  #2  
Old June 2nd, 2004, 08:34 PM
beercraft_asp's Avatar
beercraft_asp beercraft_asp is offline
Spell Breaker
ASP Free Novice (500 - 999 posts)
 
Join Date: May 2004
Posts: 990 beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level)beercraft_asp User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 8 h 33 m 42 sec
Reputation Power: 5
Send a message via AIM to beercraft_asp Send a message via MSN to beercraft_asp
Arrow

Quote:
Originally Posted by uksheep
i'm writing a query for a travel company database.
it consists of querying to find out which clients has booked with selected companys.
the comapnys are selected from a form which has 4 lookup boxes on it (cruise1, cruise2, cruise3, cruise4) these update to a table multiplecruises,
the table keeps the primary key number of each selected cruise.
i've written the query and it works except that it won't take the data from multiplecruises
ie
WHERE CruiseData.CruiseOperator = MultipleCruises.Cruise1 or CruiseData.CruiseOperator = MultipleCruises.Cruise2 and so on.

is this possible or do i have to find a way around it?

at the moment when i run the query it askes me to input values for cruise1-4 nd then works fine, i need it to take values from my table.

Did you try use AND
CruiseData.CruiseOperator = MultipleCruises.Cruise1 AND CruiseData.CruiseOperator = MultipleCruises.Cruise2

Reply With Quote
  #3  
Old June 3rd, 2004, 10:34 AM
uksheep uksheep is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 2 uksheep User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i don't think its the operator thats the problem, it asks me for all the values cruise 1-4 then it will run the query and i get the expected results
i'll post the code when i get back to a machine with access on it

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > lookup tables and querys


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT