Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old December 23rd, 2004, 02:28 AM
Jon R Jon R is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 Jon R User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Multiple field query

Hi,

Please could you help re the following.....

I have a movie database that contains fields of ACTORS 1 to 5.

I would like to create a single query that will allow me to search for the names of any one of the five actors as at the moment i have 5 seperate queries which is no good as you don't know which actor is in which field.

Also, is it possible to make a query that will allow me to search for any string of characters within a title. eg. "minat" would produce "Terminator"?

Thank you
Jon

Reply With Quote
  #2  
Old December 23rd, 2004, 05:58 AM
sherrington sherrington is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 85 sherrington User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 4 m 52 sec
Reputation Power: 5
SELECT * FROM MOVIES WHERE (ACTOR1 LIKE "*" & [SearchString] & "*") OR (ACTOR2 LIKE "*" & [SearchString] & "*") ... etc.

Reply With Quote
  #3  
Old December 24th, 2004, 03:51 AM
Jon R Jon R is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 Jon R User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks


Merry Christmas
Jon

Reply With Quote
  #4  
Old December 24th, 2004, 04:18 AM
Jon R Jon R is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 4 Jon R User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Still having problems :(

Hi again,

ive input the sql that you suggested which i think should work fine, but it states that the from cause is incorrect but ive changed it to the name of the table where actors1..5 is stored.

Ive uploaded the DB to: http://www.aubp78.dsl.pipex.com/Movie%20Database.mdb

Please could you take a look and either FTP it or send me a scrn shot of the query with the code in it.

Thank you very much
Jon

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Multiple field query


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