INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• 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.

# 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,

Just traded in my old subtlety...
for a NUANCE!

(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.

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:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!