Solved

How To do the convert

Posted on 2014-02-04
13
325 Views
Last Modified: 2014-02-04
Hello All,

I have user entering attributes of item in ft.(feet) –
How do I store values  conversion table that stores the conversion factor for the ft to meter in access?
Can someone show  a simple access  query using the user data and my conversion factor from the conversion table to show my metric in both ft and meter?

Thank you
DBConvertThis.accdb
0
Comment
Question by:Rayne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 3
  • +1
13 Comments
 
LVL 40

Assisted Solution

by:lcohan
lcohan earned 50 total points
ID: 39833409
You could "Add a calculated field to a table" so the value is converted as its stored in that table aside of the original value in ft (if needed as well):

http://office.microsoft.com/en-ca/access-help/add-a-calculated-field-to-a-table-HA101820564.aspx
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 39833427
You may design a query from your item table similar to the image attached.

Sincerely,

Ed
coversion.PNG
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 50 total points
ID: 39833430
Not quite sure how the tables are supposed to fit together, but here is a query to select all the fields in your 'item' table plus a calculated 'metres' field.

SELECT item.ID, item.description, item.length, item.unitOfMeasure, [length]/0.3048 AS metres FROM item
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 

Author Comment

by:Rayne
ID: 39833436
where is your image?
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39833443
Whose image?
0
 

Author Comment

by:Rayne
ID: 39833451
Calculated fields are a step ahead…Some of good practices as folks were saying is having a unit filed as a dropdown for ft and meter and every time the data is stores, this filed must be filled. Can you show that in the attached dB? There could be more conversions than just this…so
0
 
LVL 19

Expert Comment

by:MINDSUPERB
ID: 39833453
Hello Rayne,

You need to use: LengthInMeter: [length]/.305.

Grahamskan's formula is right.

Ed
0
 

Author Comment

by:Rayne
ID: 39833455
his image
 MINDSUPERBPosted on 2014-02-04 at 10:41:33ID: 39833427
0
 

Author Comment

by:Rayne
ID: 39833458
Just FYI- user will be storing data in meters for one set of items, for another set of items, they will be storing the data in feet….just to let you know
0
 

Author Comment

by:Rayne
ID: 39833462
As some would be sold elsewhere (seven oceans away) and some will be sold nearby
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39833468
It is there, called 'coversion.PNG'
0
 
LVL 19

Accepted Solution

by:
MINDSUPERB earned 400 total points
ID: 39833516
Hello Rayne,

See the attached DB and look into the query.

Ed
DBConvertThis.accdb
0
 

Author Comment

by:Rayne
ID: 39833546
Thank you Ed :)
That works like Gold
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

733 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