Current location: Hot Scripts Forums » Programming Languages » ASP » HELP with printing event month in loop


HELP with printing event month in loop

Reply
  #1 (permalink)  
Old 02-28-05, 05:03 PM
snappy snappy is offline
New Member
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question HELP with printing event month in loop

I created a calendar that has some fields for date and event name. Now I made it to work in a table format but now they want a list view as well.
When I do the loop to print the list view It ends up duplicating the Month Names if there is more than one event on that month. Needless to say I ma looking to trap the month name if more than one even falls on that month and only print the Month Name once.

Here is what I currently do to get the event name and Month/time stamp.

<% Set rsevent = Server.CreateObject("ADODB.RecordSet")
rsevent.Open "SELECT * FROM events Order by dates ", Conn, 1, 3
Do while NOT rsevent.EOF
rsdate = rsevent("dates") %>
<%=MonthName(Month(rsdate))%><br>

Name: <%=rsevent("event_name")%> / Date: <%=Day(rsdate)%>,&nbsp;<%=Year(rsdate)%> / Time: <%=FormatDateTime(rsdate, vbLongTime)%><br><br>

<% End If
rsevent.movenext
Loop
rsevent.close %>

FIY. The rsevent("dates") format in the SQL server is (3/2/2005 2:10:00 am) = March 3 2005 2:10 am

I am running in circles here. all help would really be appreciated. tia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-01-05, 10:54 PM
mathfxr mathfxr is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
where is ur if statement
only end if is there
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VOXROX introduces a complete line of Celeron and Pentium 4 S Everyday General Advertisements 0 11-01-04 11:27 AM
Printing Event? Naresh Rohra Visual Basic 2 09-24-04 05:15 PM
450 mb space, 20 gb bw per month $3 per month, cpanel 9 fantastico aa70 General Advertisements 0 06-27-04 05:10 AM
Disable form fields to be submitted RickyRod JavaScript 2 05-24-04 11:15 AM


All times are GMT -5. The time now is 07:07 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.