Good day everyone, I'm complete novice when it comes to VBA and Database so please bear with me and Ill do my best to explain what my problem is.
Im trying to make a report where their are three textboxes (textbox1, textbox2, textbox3). What Im trying to do is calculate the percentage of the two values that are in textbox1 and textbox2 and result would be shown in textbox3.
These are the codes in the Control Source in both textbox.
Code:Textbox1 - =Sum(IIf([FldID]="1",[BrgyCovered],0)) Textbox2 - =Sum(IIf([FldID]="1",[SubProjImp],0))
Both values from textbox1 and 2 came from a query.
I tried using this codes in the Control Source but they dont work.
Code:Textbox3 - =([txtCARCov1]/[txtCARCov2])*100
for example textbox1=28 and textbox2=26 the answer should be textbox3=93%
The answer came out as 10769.23% instead of 93%
Thank you in advance.![]()