473,395 Members | 1,452 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,395 software developers and data experts.

countfunction

12
hi friend i am trying to count a filed in oracle,

the ASP code is as follows

[HTML]Set rssum = server.CreateObject("ADODB.Recordset")
sqlsum= "SELECT Count([ReqID]) AS TOTAL " &_
"FROM Tbl_RequestInfo " &_"WHERE (((Tbl_RequestInfo.ReqBadgeno)>0) " & _"
AND ((Tbl_RequestInfo.ReqServicetypeid)= " & ServiceTypeID & ")))"
rssum.Open sqlsum, MMToConn, 1, 3[/HTML]

the above code showing an error message as

Missing Expression

Can anybody help me
Apr 13 '08 #1
1 1259
debasisdas
8,127 Expert 4TB
try to use the following query

sqlsum= "SELECT Count([ReqID]) AS TOTAL
FROM Tbl_RequestInfo WHERE (((Tbl_RequestInfo.ReqBadgeno)>0)
AND ((Tbl_RequestInfo.ReqServicetypeid)= " & ServiceTypeID & ")))"
Apr 14 '08 #2

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

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.