Results 1 to 2 of 2
  1. #1
    littlespoon is offline Novice
    Windows 8 Access 2013
    Join Date
    Oct 2015
    Posts
    1

    Lookup data across tables using next-highest value

    Hi,



    I hope you guys can help me with this. (I also hope I can explain it clearly!)

    So. I have a master database (TABLE 1), and I want to write a query that will show the records' data, including price, and also show the corresponding price tier.

    In other words, I want to write a query that will do the below:

    1) Get price (a) from Table 1
    2) Look up price (a) in a lookup table (which is called Tier Lookup. Price field is called 'GBP' and tier is called 'Tier'). Round up if necessary.
    3) Pull the corresponding tier from Tier Lookup.


    For example, if a record is priced at £1.75, I want my query to check the tier lookup, see that the next tier is £1.99, and return the corresponding tier.

    If you could explain it using Design View, that would be ideal -- I am much less confident at the SQL side of Access.

    Thank you!

  2. #2
    JamesDeckert is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Location
    Salina, KS
    Posts
    262
    Can you provide a few records from your Tier Lookup table.

    You could call a VBA function with the price passed to the function. The function returns the tier value.

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

Similar Threads

  1. Replies: 10
    Last Post: 12-29-2013, 03:26 PM
  2. Use of Lookup Tables
    By Saint in forum Access
    Replies: 1
    Last Post: 03-05-2012, 11:49 PM
  3. Entering data in forms with lookup tables
    By gretsch in forum Forms
    Replies: 1
    Last Post: 11-16-2010, 11:44 AM
  4. lookup tables
    By nkuebelbeck in forum Forms
    Replies: 3
    Last Post: 03-15-2010, 02:10 PM
  5. Lookup Tables
    By corinthianw in forum Access
    Replies: 1
    Last Post: 02-17-2010, 01:31 PM

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