Solved

Calculate a number to the nth power

Posted on 2004-04-16
2
1,560 Views
Last Modified: 2009-03-10
I have a form that contains a field with a number I want to convert to a nth power. How do I write a VB to do this?

Thanks in advance for your help.
0
Comment
Question by:CatDaddy2003
2 Comments
 
LVL 26

Assisted Solution

by:Alan Warren
Alan Warren earned 250 total points
ID: 10842798
10^10 is ten to the tenth power

Alan
0
 
LVL 1

Accepted Solution

by:
danielmarkus earned 250 total points
ID: 10842841
public function MyPower(MyNumber as double, ThePower as double) as Double


MyPower = MyNumber ^ ThePower

end function
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Get the ms access version 4 34
Open Process in Access 2013 will not open form 8 38
Supress Detail 4 17
Access Date Query 28 29
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now