Results 1 to 2 of 2
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Expression

    I have an expression that returns the correct Tax deductable from an employee. Many months ago someone helped me to get this one right. The where condition has 2 parts. I need a very similar expression but for some reason don’t get it right.
    This one is working fine.Paye03: DLookUp("[Younger65]","q02PAYE",[Salary04] & " Between [StartAmount] And [EndAmount] And #" & Format([DocumentDate07],"yyyy-mm-dd") & "# Between [StartDate05] And [EndDate02]")
    Below is an image of the table and the expression I am trying but not working. Maybe it is something small I miss. Also an image of the query where I place the expression. In the table ignore EndDate04 and EndDate11. When suggesting use EndDate05.
    Salary03: DLookUp("[Salary02]","t03SalaryReview", "Employ_ID06=" & EmployID AND #" & Format([DocumentDate10],"yyyy-mm-dd") & "# Between [StartDate07] And [EndDate05]")



    Click image for larger version. 

Name:	q03MonthSS.png 
Views:	9 
Size:	93.8 KB 
ID:	33508Click image for larger version. 

Name:	t03SalaryReview.png 
Views:	9 
Size:	103.9 KB 
ID:	33509

  2. #2
    Perfac's Avatar
    Perfac is offline Expert
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    The first two records should have displayed EndDate05 as 31Dec2017.

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

Similar Threads

  1. Replies: 2
    Last Post: 11-16-2017, 03:33 AM
  2. Replies: 4
    Last Post: 05-03-2016, 01:51 PM
  3. Replies: 5
    Last Post: 09-25-2013, 09:35 AM
  4. Replies: 2
    Last Post: 11-20-2012, 03:21 AM
  5. Replies: 4
    Last Post: 10-26-2012, 12:49 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