MS Access 2010 power function

Is there a power to base 10 function in Access 2010 to be used in form and reports?
Mahmood SadighIT ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

It is unclear what you are asking.
^ is the exponentiation operator
2^4 equals 2 to the fourth power equals 16
101234 can be expressed as 1.01234E+6
Format the field as 'scientific' to get this result.
There are the Log, Log10 and Exp() functions
Log() is the natural logarithm
Log10() is the base 10 logarithm
Exp() raises e to the supplied power

'a power to base 10 function
Function TenX(Power as Double) as Double
TenX = 10^Power
End Function

Is this helpful?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gustav BrockCIOCommented:
And a log 10 function:
Public Function Log10( _
  ByVal dblValue As Double) _
  As Double

' Returns Log 10 of input dblValue.

  ' No error handling as this should be handled
  ' outside this function.
  ' Example:
  '   If dblMyValue > 0 then
  '     dblLogMyValue = Log10(dblMyValue)
  '   Else
  '     ' Do something else ...
  '   End If

  Log10 = Log(dblValue) / Log(10)

End Function

Open in new window

What is you expected input/output?

From the Access 2003 help

The natural logarithm is the logarithm to the base e. The constant e is approximately 2.718282.
You can calculate base-n logarithms for any number x by dividing the natural logarithm of x by the natural logarithm of n as follows:
Logn(x) = Log(x) / Log(n)
The following example illustrates a custom Function that calculates base-10 logarithms:
Static Function Log10(X)
    Log10 = Log(X) / Log(10#)
End Function

So you could go:
Function LogBaseX(TheNumber as Double ,TheBase as double) as Double
LogBaseX = Log(TheNumber)/Log(TheBase)
End Function
And generalize that for any base
Mahmood SadighIT ManagerAuthor Commented:
Thanks Gustav Brock.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.