Yes, and if the id field is numeric, not sure using the apostrophes around #id# will work correctly... using apostrophes is usually reserved for text fields I believe
-----Original Message----- From: Michael Traher [mailto:[EMAIL PROTECTED] Sent: Sunday, October 22, 2006 3:55 AM To: CF-Talk Subject: Re: Noob MSAccess query struggle Hi Walter, You may need to post a small sample of data to help us understand this issue. how does petID crop up in the data for example. On 10/22/06, Walter Conti <[EMAIL PROTECTED]> wrote: > > <cfquery name="getSigs" datasource="firme"> > select signerName, signerLocation, signerComment, dateSigned, > MIN([dateSigned]) as startDate, MAX([dateSigned]) as endDate > from signatures > where signatures.petId ='#id#' > group by signerName, signerLocation, signerComment, dateSigned > order by dateSigned desc > </cfquery> > > returns the same (MAX) date for MIN and MAX even though the date range is > ample. > The error is laughing at me but I cannot see it. > Thanks for helping. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257697 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4