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.

Students Click Here

Multiply Macro for final result

Multiply Macro for final result

Multiply Macro for final result

I have created the following macro:

Sub udr5()
If (Field$("CombineYear")) = "Under 15" Then
X = (Field$("AccumNYTDinOne"))
End if
DerivedField str$(X)
End Sub

Is there a way that within the above macro I can add a line to say something like
X = (Field$("AccumNYTDinOne"))*.04
(but of course have it work)

Or can another derived field or macro be made to say to take the above macro and times it by .04?

RE: Multiply Macro for final result

Just a guess..

Try making it a "Value" instead of a string...

x = Val((Field$("AccumNYTDinOne")))*.04


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! Already a Member? Login

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