A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with Query



 
 
Thread Tools Display Modes
  #1  
Old May 2nd, 2008, 10:53 AM posted to microsoft.public.access.queries
SX
external usenet poster
 
Posts: 1
Default Help with Query

I have a set of data.

In the field there are datas such as

Diet, Health
Diet, Non-Fiction
Romance, Health
Non-Fiction, Diet
Romance, Diet

I wish to make a query that only shows Diet.

How do I do it? I tried typing just Diet in the query but it shows nothing
when I run it, Thanks.
  #2  
Old May 2nd, 2008, 11:48 AM posted to microsoft.public.access.queries
Evi
external usenet poster
 
Posts: 898
Default Help with Query

use the criteria

Like "*diet*"

Evi
"SX" wrote in message
...
I have a set of data.

In the field there are datas such as

Diet, Health
Diet, Non-Fiction
Romance, Health
Non-Fiction, Diet
Romance, Diet

I wish to make a query that only shows Diet.

How do I do it? I tried typing just Diet in the query but it shows nothing
when I run it, Thanks.



  #3  
Old May 2nd, 2008, 02:17 PM posted to microsoft.public.access.queries
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default Help with Query

While Evi has provided a way to locate the rows with "Diet" somewhere in the
field, you have a potentially long-term problem to consider.

A common precept in good database design is "one fact, one field". Your
field, however, appears to hold more than one fact (e.g., "Diet"; "Health").

Have you considered normalizing your data? Access is designed to work with
normalized data.

Good luck!

--
Regards

Jeff Boyce
www.InformationFutures.net

Microsoft Office/Access MVP
http://mvp.support.microsoft.com/

Microsoft IT Academy Program Mentor
http://microsoftitacademy.com/

"SX" wrote in message
...
I have a set of data.

In the field there are datas such as

Diet, Health
Diet, Non-Fiction
Romance, Health
Non-Fiction, Diet
Romance, Diet

I wish to make a query that only shows Diet.

How do I do it? I tried typing just Diet in the query but it shows nothing
when I run it, Thanks.


 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.