Re: Text Box in Form vs. User-Defined Criteria
- From: John W. Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Mar 2007 10:59:01 -0600
On 21 Mar 2007 07:03:51 -0700, mjbruesch@xxxxxxxxxxxx wrote:
Any ideas?
Yes. Don't use LIKE on date/time fields!
LIKE is appropriate only when you want to use wildcards to search in a Text
field. A LIKE query without wildcards on a date field forces Access to convert
the date/time field to a text string, and search that text string (without the
benefit of any index on the field).
Just use the default = operator, and be sure there's an index on the date
field in your table. You should get sub-second response unless your table is
truly enormous.
John W. Vinson [MVP]
.
- References:
- Text Box in Form vs. User-Defined Criteria
- From: mjbruesch
- Text Box in Form vs. User-Defined Criteria
- Prev by Date: RE: Left Join is excluding data from left table
- Next by Date: Re: Between [first day:] and [last day:]
- Previous by thread: Re: Text Box in Form vs. User-Defined Criteria
- Next by thread: Re: problem with IIF expression in query criteria containing OR condit
- Index(es):
Relevant Pages
|
Loading