INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

wierd result: CurAfterWitholdingTax = CurGross * 0.23

wierd result: CurAfterWitholdingTax = CurGross * 0.23

(OP)
CurAfterWitholdingTax = CurGross * CurPercentWithHoldingTax

so basic but is my logic wrong, i get for CurAfterWitholdingTax the value of -42500 or a negative number similar to that. the value of  CurPercentWithHoldingTax is 0.23 which is grabbed from a forms text box.

I am not suprised if the answer is obvious to you all, but its been 3 years since programming in VBA!
Thanks!

RE: wierd result: CurAfterWitholdingTax = CurGross * 0.23



Hi,

Quote:


CurAfterWitholdingTax the value of -42500

CurPercentWithHoldingTax is 0.23

What is the value of CurGross?

 

Skip,

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: wierd result: CurAfterWitholdingTax = CurGross * 0.23

(OP)
55000

RE: wierd result: CurAfterWitholdingTax = CurGross * 0.23

looks more like a " ... Somebody done somebody wrong ... " song.

The math presented does not provide the values.

 

MichaelRed


 

RE: wierd result: CurAfterWitholdingTax = CurGross * 0.23

(OP)
well i test the sequence in a regular calculator and got the correct results

gross(55000) * PercentWithholdRate(.23) = taxwithheld

\hmmm

RE: wierd result: CurAfterWitholdingTax = CurGross * 0.23

so, first post incorrect / incomplete.

possible overwrite of results between your (expected) calc and post?

variables changed elsewhere in process?

 

MichaelRed


 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close