473,387 Members | 1,398 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how do display top 10 new release songs?

Hi!

My backend is MS-Access. I want to display the resent new releases song.
i got in error in query. i tryed in two way, but i didn't got the answer. pls help me........

1. "Select Title,singer,Release_date from tbl_Item_Master where datediff(month,Release_date,now())<=1 order by Release_date;"

2. "Select Title,singer,Release_date from tbl_Item_Master where datediff(month,Release_date,getDate())<=1 order by Release_date;"

error - getDate()

Expand|Select|Wrap|Line Numbers
  1. <%pathdefiner = "../"%>
  2. <!--#include file="../Connection/connector.asp" -->
  3.  
  4. <html>
  5.  
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  8. <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
  9. <meta name="ProgId" content="FrontPage.Editor.Document">
  10. <title>Song</title>
  11. </head>
  12.  
  13. <body>
  14.  
  15. <form method="POST" action="--WEBBOT-SELF--">
  16. <!--webbot bot="SaveResults"
  17. U-File="C:\Inetpub\wwwroot\AspDemo\home\_private\for m_results.txt"
  18. S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
  19. <table border="1" width="100%">
  20. <tr>
  21. <td width="100%">
  22. <h2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0000FF" face="Monotype Corsiva" size="5">
  23. New Releases in the Last Month&nbsp;</font></h2>
  24. </td>
  25. </tr>
  26. <% 
  27. Set rs = Server.CreateObject("ADODB.Recordset")
  28. Set rs.ActiveConnection = my_Conn
  29.  
  30. retrieveSql = "Select Title,singer,Release_date from tbl_Item_Master where datediff(month,Release_date,now())<=1 order by Release_date;"
  31.  
  32. rs.Source = retrieveSql
  33. rs.Open
  34.  
  35. Do While not rs.EOF %>
  36. <tr>
  37. <td width="12%"><% = rs("Item_code") %></td>
  38. <td width="88%"><% = rs("Title") %></td>
  39. </tr>
  40. <%rs.MoveNext 
  41.  
  42. Loop
  43. rs.Close
  44. my_Conn.Close
  45. set rs=nothing
  46. set my_Conn=nothing
  47. %>
  48.  
  49. </table>
  50. <p>&nbsp;</p>
  51. <p>&nbsp;</p>
  52. </form>
  53.  
  54. </body>
  55.  
  56. </html> 
  57.  
Mar 4 '10 #1
1 1421
jhardman
3,406 Expert 2GB
Haven't I warned you before about posting db questions in the ASP forum? Your issue is in Access, Access is returning an error, go post in the Access forum!

Jared
Mar 11 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Con | last post by:
Hi, I'm getting the following error message in the JavaScript console: Error: mus has no properties Source File: file:///G:/temp/cafedub.htm Line: 35 Now, I would like to script to work in...
4
by: Sumaira Ahmad | last post by:
Hi, Is there any way of playing songs and downloading songs from a server onto a client machine. I want to develop an application such as a music portal which allows clients to play songs that...
4
by: andy6 via DotNetMonster.com | last post by:
I am in VS2005 Configuration Manager and have selected from the Active Solution Configuration "release". The deployment project and a supporting c# dll project both switch to release, however the...
0
by: vijil | last post by:
Hai Friends I am doing a project using asp and sql server2000.I want to know how we can store songs and retrive it from sql server 2000.
4
by: Shazia Sadiq | last post by:
Hi! i m developing a website for sell of songs all songs are place in songs folder. and at front end of website url to download shows the link of songs folder so it is threat that may be soem try...
4
by: rajbala | last post by:
Hi, I want code in javascript in which i can able to drag and drop components between the frames. At same my condition are that it doesn't removed from first frame in which we are going to...
3
by: alice | last post by:
I've been trying for a long time to figure this out, to have a page with several MP3 clips, and each one having a custom start and stop button next to them to play the track. I finally found a bit...
1
by: vegtard | last post by:
hay. long time since my last post now xD anyways, im playing around with with flash in actionscript 2.0, and the textbook im using wont teach me how to preload songs. it simply tells me that...
16
by: davidson1 | last post by:
Hai friends.... i have a video that contain songs and messages.i just want to extract songs alone.how can i do that.i am using windows XP can u help me....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.