Print Page | Close Window

BUG Poll Vote calculation incorect.

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18271
Printed Date: 13 April 2026 at 10:23am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: BUG Poll Vote calculation incorect.
Posted By: Packrat
Subject: BUG Poll Vote calculation incorect.
Date Posted: 05 February 2006 at 3:09pm
WWF8B1, Access DB

Bug in Poll vote calculation..  easy fix.
-------------------------
FILE:  includes\poll_display_inc.asp
Line: 95
OLD code:
    'Count the number of records
    lngTotalPollVotes = UBound(sarryPoll,2) + 1

Should be:
    'Initilize Total Votes
    lngTotalPollVotes = 0
-------------------------

REASON:
  Total votes are counted in the code later on.
  this error makes the % votes incorrect.
  what you end up with was # of questions + number of votes
 





Replies:
Posted By: WebWiz-Bruce
Date Posted: 05 February 2006 at 5:08pm
Thanks, I will look into a fix for this

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net