Results 1 to 6 of 6
  1. #1
    irfanparbatani is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    17

    Please help with this scenario

    Hi Admin

    This is the scenario

    I have this table
    Route Type Road_Air JAN FEB MAR APR MAY JUN JUL AUG
    125 Liquid Road 12 12 12 12 12 12 12 12
    125 Metal 13 13 13 13 13 13 13 13
    125 Air 14 14 14 14 14 14 14 14





    If My route no is 125 and Type is Liquid and Road_Air = Road, Display Jan Price
    If my route no is 125 and Type is Metal, then display second priceline i.e Jan = 13
    If my route is 125 and Road_Air = "Air", then display third priceline for Jan = 14
    If my route is 125 and above all criteria doesn't meet, display 4th price for Jan.


    Please help to code and get the price from the table.

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    What is Jan Price and where is it to be displayed?

  3. #3
    irfanparbatani is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    17
    Quote Originally Posted by burrina View Post
    What is Jan Price and where is it to be displayed?
    Jan price is stated as starting from 12 dolars and with same route there are diff prices depending on the months

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    make a query using the normal query design view
    it offers criteria rows - one each row put your criteria ... i.e.:

    125 Liquid Road
    125 Metal
    125 - - - Air

    side by side criteria is an AND statement while criteria on different rows is an OR statement.... I believe this will work fine unless I am misunderstanding your post....

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    irfan,

    It might be helpful to readers and to you if you would tell us more about your proposed database in plain English.
    Once we know what you are trying to do, it will be easier to provide more specific responses.

    Good luck.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I think this topic has been abused enough https://www.accessforums.net/queries...ble-45623.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Multiple Table Scenario
    By chriscardwell06 in forum Access
    Replies: 2
    Last Post: 12-09-2013, 06:13 PM
  2. Comfusing Scenario
    By WAWA in forum Database Design
    Replies: 1
    Last Post: 04-30-2010, 10:49 AM
  3. Scenario help
    By RadBrad in forum Access
    Replies: 3
    Last Post: 08-02-2009, 10:35 PM
  4. Best approach to export to HTML in this scenario
    By techguy817 in forum Import/Export Data
    Replies: 0
    Last Post: 04-17-2009, 10:28 PM
  5. Can I UseTabs in This Scenario?
    By skyrise in forum Forms
    Replies: 0
    Last Post: 03-06-2009, 11:10 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