Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp and sql statement question thanks

Status
Not open for further replies.

melnet

Programmer
Jul 8, 2003
77
HK
hi

sql="SELECT Count(*) FROM employeeswhere productID='" & pid & "'""
set rs=kc.execute(sql)

next step, how to display the count(*) in asp!?

thanks
 
sql="SELECT Count(*) FROM employeeswhere productID='" & pid & "'""
set rs=kc.execute(sql)

to

Code:
sql="SELECT Count(*) as cnt FROM employees where productID='" & pid & "'""
set rs=kc.execute(sql)

and display rs("cnt")

pid really a string?

___________________________________________________________________

onpnt.com
SELECT * FROM programmers WHERE clue > 0
(0 row(s) affected) -->faq333-3811

 
yes ...
coz it's foregin key(forgot how to spell)
it's fault?i should set it to be number type in access?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top