Solved

MS Access - Return a specific number of decimal places

Posted on 2015-01-19
2
133 Views
Last Modified: 2015-01-19
I'm doing some match on two field and would like to return X decimal places.

Right now I'm getting values like  

.71 / 481,534.86   = 1.4744519223385E-06

What I want to return is .0000015

Ideas?
0
Comment
Question by:keschuster
2 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
Comment Utility
Hi,

do you mean

Expr1: Round(0.71/481534.86;7)

Regards
0
 
LVL 33

Expert Comment

by:Mike Eghtebas
Comment Utility
Dim numVal As Double
numVal  = .71 / 481,534.86
MsgBox Format(numVal ,"0.0000000")  ' for 0.0000015
'MsgBox Format(numVal ,"#.0000000")  ' for .0000015
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

763 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

14 Experts available now in Live!

Get 1:1 Help Now