Solved

How To do the convert

Posted on 2014-02-04
13
319 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
  • 6
  • 3
  • 3
  • +1
13 Comments
 
LVL 39

Assisted Solution

by:lcohan
lcohan earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:Rayne
Comment Utility
where is your image?
0
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
Whose image?
0
 

Author Comment

by:Rayne
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 19

Expert Comment

by:MINDSUPERB
Comment Utility
Hello Rayne,

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

Grahamskan's formula is right.

Ed
0
 

Author Comment

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

Author Comment

by:Rayne
Comment Utility
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
Comment Utility
As some would be sold elsewhere (seven oceans away) and some will be sold nearby
0
 
LVL 76

Expert Comment

by:GrahamSkan
Comment Utility
It is there, called 'coversion.PNG'
0
 
LVL 19

Accepted Solution

by:
MINDSUPERB earned 400 total points
Comment Utility
Hello Rayne,

See the attached DB and look into the query.

Ed
DBConvertThis.accdb
0
 

Author Comment

by:Rayne
Comment Utility
Thank you Ed :)
That works like Gold
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

This article will show you how to use shortcut menus in the Access run-time environment.
This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

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

11 Experts available now in Live!

Get 1:1 Help Now