Date difference calculation in Access

Michael_gengen Posted messages 99 Registration date   Status Member -  
 M0dj0 -
Good day?
I am an intern at a transportation company and I need to create a DBMS (SGBDR) to manage drivers' payrolls (with bonus, vacations...). To calculate seniority, I ran into a (first) difficulty. I think we should compute the difference between the hire date and today's date. The problem is that in the query I can't find the syntax. Anybody can help me, please? Thanks in advance. Mika_gengen. I will be back!

13 answers

  1. fanche
     
    try with DiffDate("a";date();hire date) in a form. With date() which is today's date and hire date which is the value of the field you retrieve from your form. It should work normally
    8
    1. Michael_gengen Posted messages 99 Registration date   Status Member 4
       
      Thanks for the help

      mmmba here is some good ham on the bone
      0
    2. MCL
       
      Hello

      All my date-related queries are not working.
      My system is in French Canada.

      Some formulas like:
      Tenure: DiffDate("aaaa";[DateEmbauche];Date())
      MembershipYear: PartDate("aaaa";[Date_adhésion])

      That gives me #Error

      Thanks for giving me a hand
      0