Results 1 to 2 of 2
  1. #1
    TLCTech is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Posts
    26

    Creating a form that checks for Data entry

    I am trying to create a form with Access 2013. I need to check the table data that has been previously entered to see when the last entrance date and exit date was when they were entered into the table. I then need to check to see if their stay that was entered is 14 days. Another thing that I need to check is if they have stayed with us 14 days in the last 30 days. If they have not, how many days do they have left to stay. If they did, tell me that they cannot stay. Any help would be appreciated. I am new to database.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,649
    This could get complicated.

    Entrance and exit dates are in the same record?

    Build a query that calculates the length of the visit - use DateDiff function to construct this calculated field in query - and also pulls the most recent (as defined by the exit date?) record for each entity (client, guest, customer ?). Review http://allenbrowne.com/subquery-01.html#TopN

    Get that much working first.
    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. Creating an offline Data Entry form
    By Starlight in forum Access
    Replies: 3
    Last Post: 09-19-2015, 04:13 PM
  2. Replies: 5
    Last Post: 03-09-2014, 07:16 PM
  3. Creating form for data entry
    By salisbut in forum Forms
    Replies: 5
    Last Post: 03-31-2011, 12:22 PM
  4. Creating an Entry Form
    By Bike in forum Forms
    Replies: 1
    Last Post: 03-28-2011, 11:48 PM
  5. Creating data entry form
    By ksukat in forum Forms
    Replies: 3
    Last Post: 03-11-2010, 04:55 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