Results 1 to 2 of 2
  1. #1
    ridgeandgable is offline Novice
    Windows 10 Access 2007
    Join Date
    Jul 2017
    Posts
    3

    Report by Filter

    Hi Guys



    I've found my old database on the internet that I made way back in 2009 amazed to still see it, but I've forgotten some of the basics

    I have a table & form called EmployeePay which has employeeID, EmployeeName, PayDate, HourlyRate, Tax, NI, Deductions, TotalPay

    I need to create a filter so when I click on payslip from the form, it will open a report showing the current pay slip which I would imagine would be something like

    Select Employee Name & Date = (Shows that 1 record)

    Can someone help

    Cheers

  2. #2
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,791
    You have all this info in one table, plus you have employee first and last name in one field? If the answer is yes to either, it would not be a good example of normalization. To answer your question without knowing that or what makes a payslip current, or which fields you want, or what the data types are, or where the criteria is coming from, I'd guess
    Code:
    SELECT * FROM EmployeePay WHERE employeeID = 1 AND PayDate > TheLastPayDate
    where 1 is, I presume, the employeeID and PayDate is also fed to this somehow. I guess that this isn't a filter either. Rather, I take it that this is to be the record source for the report.
    Last edited by Micron; 07-30-2017 at 06:56 PM. Reason: code correction
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 4
    Last Post: 04-30-2014, 09:40 PM
  2. Replies: 1
    Last Post: 07-25-2013, 01:20 PM
  3. Replies: 2
    Last Post: 05-10-2013, 03:37 PM
  4. Report Filter
    By BFlat in forum Access
    Replies: 3
    Last Post: 05-12-2012, 12:51 AM
  5. Filter Report
    By BorisGomel in forum Reports
    Replies: 2
    Last Post: 06-09-2011, 03:22 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