ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 13th, 2005, 02:21 PM
staggs staggs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 2 staggs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 49 sec
Reputation Power: 0
newbie help

I just barely know enough CF to be dangerous... look out!!!

Here's my problem... I'm trying to group events by their date, but keep getting an undefined function in my query...

What am I doing wrong?? This site is using an Access DB and its throwing me for a loop.

here's my query...
select *, Dateformat(event_date, "mm/yy") as monthyear
from event_calendar
where rec_status = 'K'
order by monthyear

Then the output...
<cfoutput group="monthyear" query="getevents">

Any help would be appreciated
Thanks

Reply With Quote
  #2  
Old July 13th, 2005, 02:34 PM
Bastion Bastion is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 181 Bastion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 4 h 23 m 47 sec
Reputation Power: 4
The problem is with the Dateformat() within the Query. Dateformat is Coldfusion and the query commands are actually not Coldfusion.

Reply With Quote
  #3  
Old July 13th, 2005, 02:41 PM
staggs staggs is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 2 staggs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m 49 sec
Reputation Power: 0
Thanks... how do I fix it?

Quote:
Originally Posted by Bastion
The problem is with the Dateformat() within the Query. Dateformat is Coldfusion and the query commands are actually not Coldfusion.

Reply With Quote
  #4  
Old July 13th, 2005, 03:13 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,648 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 8 m 8 sec
Reputation Power: 53
You either need to apply the CFML function when you later output the query data (after the query has run), or you need to use a native database function to format the date in the query itself (check the documentation for your database).
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #5  
Old July 18th, 2005, 11:37 AM
kaasu kaasu is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 58 kaasu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 1 m 4 sec
Reputation Power: 5
You can use access native function to format date. The f unction is called Format and here is a reference.

http://www.techonthenet.com/access/functions/date/format.htm

Quote:
Originally Posted by staggs
Thanks... how do I fix it?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > newbie help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway