cdbl konvertar till typen double (den som kan hantera tal med decimaler.)
Borde du inte ta bort poster där vote eller vote_times är null?
sql = "SELECT TOP 10 picture_name,vote_times, vote, cdbl(vote)/cdbl(vote_times) as minkvot " & _
" FROM T_picture_stats " & _
" where vote is not null and vote_times is not null " & _
" ORDER BY 4 DESC, vote_times DESC "
275 ms totalt · 4 externa anrop · v20260731065814-full.81e7e81c