Results 1 to 3 of 3
  1. #1
    FadingAPE is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    18

    Form Display Help

    Im trying to create a form that shows staff when people are on holiday within the space of one week. I have created a table (tblStaffHolidays)with the following headers;



    HolidayID
    Name
    DateHolidayStarts
    Duration
    Team

    What I want is to be able to pull up a form that shows who is on holiday for that week. I currently have the following code but it only shows whos on holiday today.

    select * from [tblStaffHolidays] where DateHolidayStarts = Date()

    Can anyone help me with this query please?

    Many Thanks
    Laura

  2. #2
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    161
    Modify the record source to
    select * from [tblStaffHolidays] where DateHolidayStarts Between Date()
    And Date() -7 to show data for 7 days fron today
    You can also create a query with filrered data for the week and than connect it to form as record sourse.

  3. #3
    FadingAPE is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    18
    Youre a star! Thank you very much!

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

Similar Threads

  1. Display ALL records in a form?
    By evander in forum Forms
    Replies: 3
    Last Post: 07-15-2010, 07:59 AM
  2. Form won't display all data
    By cbwestrunner in forum Access
    Replies: 3
    Last Post: 06-09-2010, 03:10 PM
  3. Display table on a form
    By vCallNSPF in forum Forms
    Replies: 1
    Last Post: 01-17-2010, 08:23 PM
  4. Replies: 8
    Last Post: 10-09-2009, 10:12 AM
  5. Form to display results
    By Zholt in forum Forms
    Replies: 9
    Last Post: 05-07-2009, 10:09 AM

Tags for this Thread

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