Results 1 to 4 of 4
  1. #1
    adar is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    2

    start date with lapse days

    Hi.. Need help on the following situation
    I Have fields named Start date and End date . I want to have the next start date will only be possible after 3 days the previous end date.




    Appreciated your help
    thanks

    adar

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Previous end date for what - of all records in table, for an employee, customer? Use DMax to get the maximum date for whatever criteria is relevent then calculate the start date.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    adar is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2011
    Posts
    2
    Is actually for training recod.each employee has a start date and end date for each courses enrolled and must have a 3 days lapse before can enroll the next one. How is the formula for dmax?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    Access Help has guidelines on data aggregate functions (DSum, DCount, DAvg, DMax, DMin). General form is:

    DMax("fieldname", "tablename", "criteria")

    Criteria is an expression like the WHERE clause of an sql statement.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 8
    Last Post: 09-23-2012, 01:05 AM
  2. Replies: 1
    Last Post: 07-07-2010, 04:22 PM
  3. Replies: 2
    Last Post: 07-31-2009, 06:56 AM
  4. 90 days in the pass - Date help wanted
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 01-26-2009, 07:13 AM
  5. Replies: 1
    Last Post: 12-09-2005, 10:29 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