Quote Originally Posted by asnider
actually, you said returns the correct value, meaning the query returns only one row? if so then, try:

Code:
reader = command.ExecuteReader(CommandBehavior.SingleRow)
If reader.Read Then
return reader.item(0)
endif
This did not help...It still returns 0