Quote:
Originally posted by paul lush
Other than another database, not really. mySQL still has problems understanding SQL99. By far my favorite is mssql dare I say it with postgres in a close 2nd. You'll just have to code around ODBC problems
|
Why do i get a type mismatch when
useing the count
MaxSupplierSQL = "select Count(supplier) as MaxSuppl from suppliers"
Set rsMaxSupplier = Server.CreateObject ("ADODB.Recordset")
rsMaxSupplier.Open MaxSupplierSQL, strConn , 0, 1
MaxSuppl = rsMaxSupplier("MaxSuppl")
rsMaxSupplier.close
when writing there is no problem
response.write "record count=" & MaxSuppl & "<br>"
but when using the for loop i recieve a type mismatch error ???
for intSuppl = 1 to MaxSuppl
response.write(rsSupplier("supplier") & " - " &_ rsSupplier("Name") & " " & MaxSuppl )
'response.write(rsSupplier.fields("supplier").valu e)
response.write("<br>")
rsSupplier.movenext
next