PC Review


Reply
Thread Tools Rate Thread

Can I query two itmes in the same record field?

 
 
Dave
Guest
Posts: n/a
 
      7th Jun 2004
I have used Database Wizard to successfully make queries. All is well here.

I would like to know if I can enter 2 items on the search line for the same
field and get results.

Example; the name product contains, Apples, Oranges, Pears, and Bananas.

If I enter Apples, results are as expected. Can I enter Apples and Oranges
somehow and get an "either" or an "and" return.

So the results would be returns for all of the Apples or all of the Oranges
or both.

Thanks

Dave


 
Reply With Quote
 
 
 
 
Jim Buyens
Guest
Posts: n/a
 
      7th Jun 2004
Yes. Create a form that contains three elements:

o A text box named fruit1.
o A text box named fruit2.
o A Submit button.

Configure the form properties to use a custom form
handler, but don't specify an Action property. This makes
the form submit to the same page.

In the DRW, advance to page 3, then click More Options,
Criteria, and Add. Then enter:

Field Name prodname
Comparison Contains
Value fruit1
Use This Search Form Field: Checked
And/Or Or

Next, click OK, click Add, and enter:

Field Name prodname
Comparison Contains
Value fruit2
Use This Search Form Field: Checked
And/Or And

Jim Buyens
MicrJim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
osoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



>-----Original Message-----
>I have used Database Wizard to successfully make
>queries. All is well here.
>
>I would like to know if I can enter 2 items on the search
>line for the same field and get results.
>
>Example; the name product contains, Apples, Oranges,
>Pears, and Bananas.
>
>If I enter Apples, results are as expected. Can I enter
>Apples and Oranges
>somehow and get an "either" or an "and" return.
>
>So the results would be returns for all of the Apples or
>all of the Oranges or both.
>
>Thanks
>
>Dave
>
>
>.
>

 
Reply With Quote
Reply

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query to append a field to a record if another field matches Caleb Microsoft Access Reports 0 21st May 2009 09:59 PM
Query to append a field to a record if another field matches Caleb Microsoft Access Reports 0 21st May 2009 09:59 PM
Outlook sent itmes hotmail download does not do "TO" field properl =?Utf-8?B?bmFudHVja2V0Ym9i?= Microsoft Outlook Installation 0 1st Jul 2006 02:16 PM
Query a field with more than one record? =?Utf-8?B?S291IFZhbmc=?= Microsoft Access Queries 3 15th Dec 2005 10:26 PM
Query field needs to return only first record in 1 to Many Nick Mirro Microsoft Access Queries 4 5th Dec 2003 03:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:11 PM.