> -----Original Message-----
> From: Art Broussard [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 23, 2001 11:31 AM
> To: CF-Talk
> Subject: Easy access question
>
>
> I want to search a dictionary table in an access database. I want
> to find all records where the name starts with the letter T.
>
>   <cfquery name="get" datasource="#application.datasource#">
>    select * from dic
>    where name like 'T*'
>    order by name
>   </cfquery>
>
> This should give me any record that has the first letter in name
> start with T right? Wrong. : (
>
> What am I doing wrong???
>
> Art
>

Try

 where name like 'T%'

I just went through this myself, going half-mad (since * does work in an
Access query) until I opened my CFWACK and noticed the % instead of *

Unless I went totally mad and it was the other way around....

James Mathieson
Information Systems Manager
The Wildlife Society
5410 Grosvenor Lane
Bethesda, MD  20814-2197
PH: 301-897-9770
Fax:  301-530-2471
[EMAIL PROTECTED]
http://www.wildlife.org/


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to