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  

Using criteria



 
 
Thread Tools Display Modes
  #1  
Old May 23rd, 2004, 10:15 PM
Dave
external usenet poster
 
Posts: n/a
Default Using criteria

I have a query with the following rows:

Pro1
Pro2
Pro3
Pro4
abc1
abc2
abc3

etc.

Is there any way to make a selection that just returns the Pro1, 2,3,4
rows - I thought of perhaps using Like, but cant seem to make it work



  #2  
Old May 23rd, 2004, 11:54 PM
John Spencer (MVP)
external usenet poster
 
Posts: n/a
Default Using criteria

It always helps if you show what you tried. AND explain why the results weren't
what you wanted - too many records, wrong records, no records, an error message.

Did you try criteria of

LIKE "PRO*"

or

LIKE "PRO%"

IF so, what results did you get and why weren't they appropriate


Dave wrote:

I have a query with the following rows:

Pro1
Pro2
Pro3
Pro4
abc1
abc2
abc3

etc.

Is there any way to make a selection that just returns the Pro1, 2,3,4
rows - I thought of perhaps using Like, but cant seem to make it work

  #3  
Old May 24th, 2004, 07:20 AM
Andrew L.
external usenet poster
 
Posts: n/a
Default Using criteria

Do these rows relate to a single field?

If so, in query design:-

Field: Left([yourfield],3)

Criteria: ="Pro"

Andrew L.

"Dave" wrote in message ...
I have a query with the following rows:

Pro1
Pro2
Pro3
Pro4
abc1
abc2
abc3

etc.

Is there any way to make a selection that just returns the Pro1, 2,3,4
rows - I thought of perhaps using Like, but cant seem to make it work



 




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 04:28 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.