Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,165
    Quote Originally Posted by RJB View Post
    =DLookUp("=Forms![PayRate]![Years]","[BasePay]","[Rate] = '" & [Forms]![PayRate]![Grade] & "'") - doesn't work, but if I do:


    =DLookUp("[5]","[BasePay]","[Rate] = '" & [Forms]![PayRate]![Grade] & "'"), I get the proper dollar amount for someone with the grade and 5 years of service. Unfortunately, only for 5 years. Once I bring up the next employee, I get the wrong amount because they may have only 4 years or might have 10, etc.
    =DLookUp(Forms![PayRate]![Years],"[BasePay]","[Rate] = '" & [Forms]![PayRate]![Grade] & "'")

  2. #17
    Join Date
    Apr 2017
    Posts
    1,776
    Quote Originally Posted by RJB View Post
    Ugh! There are 24 different pay grades with different rates from 1 year through about 40.
    It's an one-time work for couple of hours.

    Isn't there some formula applicable. E.g. you have a base pay, and some coefficient per year allowing calculate the pay depending on seniority in years.

    Quote Originally Posted by RJB View Post
    One question, what does BPID represent?
    BasePayID - an autonumeric primary key (I prefer to keep them short).

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Dlookup expression.
    By Perfac in forum Access
    Replies: 1
    Last Post: 02-04-2018, 01:34 AM
  2. Replies: 2
    Last Post: 05-27-2016, 06:10 PM
  3. Query Expression with IIF and DLOOKUP
    By bryan0 in forum Queries
    Replies: 7
    Last Post: 01-30-2014, 07:52 PM
  4. Complicated textbox expression challenge
    By Wombat in forum Access
    Replies: 2
    Last Post: 03-06-2012, 07:34 PM
  5. Dlookup Expression Help
    By chrismja in forum Queries
    Replies: 10
    Last Post: 10-29-2010, 03:42 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