Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

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 ASP Free Forums Sponsor:
  #1  
Old February 16th, 2005, 11:02 PM
kelvinlim11 kelvinlim11 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 123 kelvinlim11 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 2 m 8 sec
Reputation Power: 0
any1 knows wat is the new value?

SQLSt2 = "SELECT JOBNO,SNO,CUSTOMER,DATENO, COUNT(*) as NUMBERFROM MAIN_TA WHERE CUSTOMER = '" & customer & "'"

this is my sql statment..... is my count(*) syntax correct?

how do i do a response.write on the number of tuples return??

can any1 enlighten me??

The search returns <b></b><%response.write(rs2.Fields("NUMBER").value)%></b> results.

the above gives me an error that Item cannot be found in the collection corresponding to the requested name or ordinal.

????

Reply With Quote
  #2  
Old February 16th, 2005, 11:12 PM
Tonny-Soeroso Tonny-Soeroso is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 36 Tonny-Soeroso User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 56 m 27 sec
Reputation Power: 0
i think your sql statement must be like this :
Quote:


SQLSt2 = "SELECT JOBNO,SNO,CUSTOMER,DATENO, COUNT(*) as NUMBER "
sqlst2 = sqlst2 & " FROM MAIN_TA WHERE CUSTOMER = '" & customer & "'"
sqlst2 = sqlst2 & " Group by jobno, sno, customer, dateno "


Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > any1 knows wat is the new value?


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 3 hosted by Hostway
Stay green...Green IT