Ashfaque
Search Beautiful Girls from your town for night
- Local time
- Tomorrow, 03:12
- Joined
- Sep 6, 2004
- Messages
- 897
I tried to calculated 2 text boxes value when there is value in both. But when both are null or any of them is null then I am getting
"Run-time error 11 - Division by zero" for my this line :
What is the solution to come over this ?
Can someone look into.
"Run-time error 11 - Division by zero" for my this line :
Code:
Nz(CLng(TxtAccSaudiPercent.Value), 0) = Nz(CLng(TxtSaudiAccounts.Value), 0) * (100 / (Nz(CLng(TxtSaudiAccounts.Value), 0) + Nz(CLng(TxtExpatAccounts.Value), 0)))
What is the solution to come over this ?
Can someone look into.