|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
multiple possibilities for a field in access
When I do a search for the field major (ex. Computer Science), there is one person in my database who has Computer Science and Spanish in the major category. After completing the search, how do I make it so the code will show her name as well (if there are two or more possibilities in a field), since she would match the computer science search. Here is my code:
SELECT * FROM ALUMNA WHERE 0=0 <cfif Len(Form.maj)>AND MAJOR='#Form.maj#'</cfif> Thanks a bunch! |
|
#2
|
|||
|
|||
|
SELECT lastname FROM ALUMNA
WHERE 0=0 <cfif Len(Form.maj)>AND MAJOR='#Form.maj#'</cfif> This is really, really basic SQL by the way. If these sorts of issues are hampering you, then you *really* need to get a SQL book.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
||||
|
||||
|
I am guessing here, but what i think you are asking is how do you have this person show up for both CS and Spanish search? If that is the case, it is another simple SQL change. Instead of using =, use the like command and surround your searching value with wildcards (oracle would be: MAJOR LIKE '%CS%')
|
|
#4
|
|||
|
|||
|
Quote:
Thanks EBOT!!! Have an awesome weekend! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > multiple possibilities for a field in access |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|