Results 1 to 11 of 11
  1. #1
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63

    help need on query report on who is on leave

    hi guys,

    i have a problem and i hope you can help me.
    i am doing a project for my class and i have some difficulties completing the project.

    1) i have a problem associating the leave with the employee
    2)i need to calculate how many days that person took.


    3)and if possible could a create a leave query that could search for one or all the personnel on leave?

    thanks guys.
    Last edited by islandboy; 08-17-2009 at 01:59 AM.

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    This link may help you with part of your issues.

  3. #3
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    Quote Originally Posted by RuralGuy View Post
    This link may help you with part of your issues.

    ok RG got the that part i used =DatePart("d",[DateTo])-DatePart("d",[DateFrom]), can you help me creating a query that will show who is on leave ?

    thanks for your help mate.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    So you need the T-Leave records WHERE [DateFrom] >= Date() AND [DateTo] <= Date() Right?

  5. #5
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    Quote Originally Posted by RuralGuy View Post
    So you need the T-Leave records WHERE [DateFrom] >= Date() AND [DateTo] <= Date() Right?
    what i need is a report that will show me who is on leave on that time when the report is created hope i make myself clear my friend. you think is possible to do?

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Did you understand the code I supplied? Try creating a query with what I supplied as criteria for the two fields.

  7. #7
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    Quote Originally Posted by RuralGuy View Post
    Did you understand the code I supplied? Try creating a query with what I supplied as criteria for the two fields.
    ok mate i try that and let you know. thanks.

  8. #8
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'll be around.

  9. #9
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    i think i mess up....i think i need to explain to you what i need to do.

    can you attach the form leave to the employee table such as if i look for an employee i can click on a button on the employee form and get the leave info.

    hope you did understand me.

    thanks.

  10. #10
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You need to populate your tables with some dummy data so tests can be run on what you want.

  11. #11
    islandboy is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2009
    Posts
    63
    Quote Originally Posted by RuralGuy View Post
    You need to populate your tables with some dummy data so tests can be run on what you want.
    i try entering data on the employee form but then i get error on T_Leave..

    i tried to make it work no luck till now.

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

Similar Threads

  1. difference between drivers
    By tomc1 in forum Access
    Replies: 0
    Last Post: 08-04-2009, 10:41 AM
  2. less than 180 days old
    By techexpressinc in forum Queries
    Replies: 2
    Last Post: 06-04-2009, 04:29 PM
  3. Time difference
    By jguidry in forum Programming
    Replies: 1
    Last Post: 11-15-2008, 12:41 PM
  4. Replies: 0
    Last Post: 08-07-2008, 07:02 PM
  5. Total no of days in a month
    By wasim_sono in forum Forms
    Replies: 4
    Last Post: 10-15-2006, 01:05 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