Results 1 to 3 of 3
  1. #1
    dmon2010 is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Sep 2013
    Posts
    39

    Calculation based on cubic foot

    I have a form that shows Length, width, height and weight.



    I have the form set up like this:

    Length x width x height / 1728 = cubic feet

    Weight / cubic feet = lbs per cubic foot


    Now I want to add another field that will give me one of three answers, depending on the lbs per cubic foot.

    under 22.5 lbs per cubic foot = 70
    22.6 - 30 lbs per cubic foot = 65
    31 and over lbs per cubic foot = 60

    Not sure if I need to create a query to get this right.

    Any help would be greatly appreciated!

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    this is called a calculated field and is performed in a query using an IIF

    you will already have 1 calculated field which would be this: CubicFt: (Length x width x height) / 1728

    your new calc field I will call 'Find'.... Find: Iif([CubicFt]<22.5,70,0)

    bing/goggle IIF to see that syntax and you'll see that this results in 70 or 0 .... then you get to nest those in order to 3 way (or more...)

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I would consider VBA if you plan on using Single Form view. Use an alias in a query if you plan to view the data in DS view.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Record selection based on calculation
    By WEJ in forum Programming
    Replies: 5
    Last Post: 05-30-2013, 01:05 PM
  2. I'm Back! Help me start on the right foot this time :)
    By JeffG3209 in forum Database Design
    Replies: 1
    Last Post: 11-25-2011, 01:28 AM
  3. Page Break after foot, but not for last section
    By thestappa in forum Reports
    Replies: 0
    Last Post: 11-24-2010, 03:31 PM
  4. Replies: 2
    Last Post: 03-03-2010, 07:37 AM
  5. duplicate record based on calculation
    By Coolpapabell in forum Queries
    Replies: 4
    Last Post: 08-06-2009, 07:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums