RSS Forums RSS
Please support our ColdFusion advertiser: Programming Forums
Views: 3454 | Replies: 2
Reply
Join Date: Apr 2007
Posts: 28
Reputation: lafalot is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
lafalot lafalot is offline Offline
Light Poster

Loop through query to find value

  #1  
Apr 24th, 2007
Hi all,

I am running a query on an MS Access table that has some fields that are the same and some that aren't. For example, the customer number_field is the same, but the start_date field is different. I'd like to run through the query and when the customer_id is the same, have all those records displayed together in a table row.
Is there a way to do this?

Thanks in advance!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Posts: 28
Reputation: cfAllie is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
cfAllie cfAllie is offline Offline
Light Poster

Re: Loop through query to find value

  #2  
Apr 26th, 2007
If you order the query by customer_number you can use cfoutput with the group attribute to group the results together.

Sorry for the poor wrapping

-------------------------------------------------
|customer_num# 1      2007-04-26
|                                2007-04-16
-------------------------------------------------
|customer_num# 2      2007-03-10
-------------------------------------------------
|customer_num# 3      2007-03-20
|                                2007-04-06
-------------------------------------------------
Reply With Quote  
Join Date: Apr 2007
Posts: 28
Reputation: lafalot is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
lafalot lafalot is offline Offline
Light Poster

Re: Loop through query to find value

  #3  
Apr 26th, 2007
Yep, that worked! Thank you, CFAllie!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC