Re: Database Search Results Are Incorrect
anonymous_at_discussions.microsoft.com
Date: 04/22/04
- Next message: chris leeds: "Re: different screen resolutions"
- Previous message: jrmaul: "different screen resolutions"
- In reply to: Kevin Spencer: "Re: Database Search Results Are Incorrect"
- Next in thread: Kevin Spencer: "Re: Database Search Results Are Incorrect"
- Reply: Kevin Spencer: "Re: Database Search Results Are Incorrect"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 12:11:07 -0700
Thanks for all of your feedback! The site link with query
explinations was helpful. However, I'm not getting the
right results even if my query is exact. If I
say "equals" and put in exact criteria that I know
matches a record in my data I get no results returned.
Any other ideas as to what I could be doing wrong?
Karen - I am pulling data from a database management
program that is not part of the microsoft word suite. I
am able to export to excel but not access. This morning I
attempted to export my excel data into access but when I
upload it to my site the data is not recognized in the
database wizard. Any ideas?
Thanks so much for your help! I'm desperate.
>-----Original Message-----
>If you are using a wildcard query (e.g. company
LIKE '::company::*'), which
>has multiple conditions which you OR together, you may
be getting all
>records because of the combination of wildcard
conditions, blank form
>fields, and the ORs which you use to string them
together. For example, in
>the WHERE clause I posted above, if the form field was
empty, the
>translation would be "company like '*'" which returns
all records. Now
>combine that with another field that DOES have a value,
but the conditions
>are ORed together:
>
>SELECT blah from blah WHERE
>company LIKE '*' OR FullName LIKE 'Mary*'
>
>Notice that the first condition allows ALL records,
while the second
>condition filters the result set. However, the OR means
that any record
>satisfying EITHER condition is a match. The above query
would return ALL
>records.
>
>--
>HTH,
>Kevin Spencer
>..Net Developer
>Microsoft MVP
>Big things are made up
>of lots of little things.
>
>"Melissa" <anonymous@discussions.microsoft.com> wrote in
message
>news:2BFA6A17-F853-42B2-A9D9-
7E4660956AEC@microsoft.com...
>> I have been trying for quite some time to put
together .asp database
>search and results pages (using the front page wizard)
and have been
>unsuccessful. I am currently using front page 2003
(though I've tried this
>with both 98 and 00) and the database is connected
properly and is in excel
>format. (i've also tried this using an access database)
I have tried many
>different variations of search criteria (starts with,
equals, contains,
>ect...) but my results do not return correctly in any
instance. If I set the
>criteria to "contains" then I get the entire database as
my result. I am not
>very saavy with code, but am willing to try anything to
make this work. I'm
>very frustrated and can't figure out what I'm doing
wrong. Here's a link to
>my attempt at this search feature:
>> http://www.caassistedliving.org/Templates/Assoc.asp.
Please excuse the
>look of this site. I am working on a complete re-vamp.
>> please please please help!
>> Thanks.
>
>
>.
>
- Next message: chris leeds: "Re: different screen resolutions"
- Previous message: jrmaul: "different screen resolutions"
- In reply to: Kevin Spencer: "Re: Database Search Results Are Incorrect"
- Next in thread: Kevin Spencer: "Re: Database Search Results Are Incorrect"
- Reply: Kevin Spencer: "Re: Database Search Results Are Incorrect"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|