PC Review


Reply
Thread Tools Rate Thread

Access 2007 Will not accept wildcard

 
 
Rita Brasher
Guest
Posts: n/a
 
      6th May 2010
I have a query and in the criteria for a text field (Route), I'm placing
the following statement:

Like "*433"



When executed, the query will not return any rows. However, if I type
in each option (IE433, X433, etc.) and execute each one, results are
returned.

I had another query where I used this with no issue.
Any ideas as to what the problem may be?

Thanks,
Rita Brasher
 
Reply With Quote
 
 
 
 
John Spencer
Guest
Posts: n/a
 
      6th May 2010
It could be that you have checked use ANSI compliant SQL. If so the wild card
is a % sign. Try using
Like '%433'
and see if that works

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Rita Brasher wrote:
> I have a query and in the criteria for a text field (Route), I'm placing
> the following statement:
>
> Like "*433"
>
>
>
> When executed, the query will not return any rows. However, if I type
> in each option (IE433, X433, etc.) and execute each one, results are
> returned.
>
> I had another query where I used this with no issue.
> Any ideas as to what the problem may be?
>
> Thanks,
> Rita Brasher

 
Reply With Quote
 
KARL DEWEY
Guest
Posts: n/a
 
      6th May 2010
Do you have any formating on the field?

Post the SQL of your query.

--
Build a little, test a little.


"Rita Brasher" wrote:

> I have a query and in the criteria for a text field (Route), I'm placing
> the following statement:
>
> Like "*433"
>
>
>
> When executed, the query will not return any rows. However, if I type
> in each option (IE433, X433, etc.) and execute each one, results are
> returned.
>
> I had another query where I used this with no issue.
> Any ideas as to what the problem may be?
>
> Thanks,
> Rita Brasher
> .
>

 
Reply With Quote
 
Rita Brasher
Guest
Posts: n/a
 
      11th May 2010
Here's the SQL:

SELECT DISTINCT [Monthly Shortages].ARRIVAL_WORK_DT, [Monthly
Shortages].AIRBILL_NBR, [Monthly Shortages].TRACKING_NBR, [Monthly
Shortages].PORT_ID, [Monthly Shortages].ORIGIN_LOCATION_CD, [Monthly
Shortages].ROUTE_NBR, [Monthly Shortages].SERVICE_CD
FROM [Monthly Shortages]
WHERE ((([Monthly Shortages].ARRIVAL_WORK_DT)="20100510") AND (([Monthly
Shortages].ROUTE_NBR) Like "*433"));


All fields are text. (I didn't create the table, I just access it.)



On 5/6/2010 3:10 PM, KARL DEWEY wrote:
> Do you have any formating on the field?
>
> Post the SQL of your query.
>

 
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
Creating Access 2007 Macro that will accept user input to search for a value strappyblues Microsoft Access Macros 0 31st Mar 2010 02:12 PM
Re: Access WildCard for Date Rick Brandt Microsoft Access Queries 0 14th Feb 2009 03:19 PM
Does Outlook 2007 fully support using wildcard certificate names? Eric Microsoft Outlook Installation 0 6th Jul 2008 02:56 PM
Office 2007 doesn't like wildcard SSL principal name for IMAP serv =?Utf-8?B?VGVk?= Microsoft Outlook Discussion 0 30th Apr 2007 08:44 AM
wildcard '%' acting like wildcard '_' in .net aspx page More options Gordon.E.Anderson@gmail.com Microsoft VB .NET 0 28th Mar 2007 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 PM.