Results 1 to 3 of 3
  1. #1
    Diamond is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    13

    How to set up database to show history of information and test frequency

    I am starting a database in Access 2003. I would like it to show a history of a particular device; I want to be able to edit and add a device, and have it connected to an individual account and show the manufacturer. There is one device with many histories, and one account may have many devices. I would like to show the history for each device on one account.



    One device needs to be tested. The choices are annual, bi-annual, and quarterly. How do I set up the database to calculate a next test date for each of the choices of annual, bi-annual, and quarterly? Should the choices be check boxes or a different control? I am going to have to query these dates eventually to send out letters.

    I am still trying to map the database out on paper. Any help is appreciated.

  2. #2
    Stingaway is offline Efficiency Junkie
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    The deep south. Keep going until you hit water basically.
    Posts
    224
    Couple of ways to go about it - any and all might fit your needs. One way - you can set up a query that references the date, then use that query to give a number of days until the next test date. I have done this in the past by creating a table with terms - for example "Term" would be one field containing annual, bi-annual, quarterly for example, and term duration would be another field containing the time (in this case in days) - 365, 180, 120 etc...

    By looking at the start date or last test date, and then comparing that with it's term and the current date (easily done in a query by using the Now() function), you can find and present a date for the next test date.

    You can add date fields by using functions such as Now() Example: Now()+180 = 180 days from now, Now() - 7 = 7 days ago, etc. Look up the datediff function to get the amount of days between two dates, etc. All of this can be done IN the query, you don't have to use VBA for it at all..

    Hope it helps.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Here is a process with a sample scenario that leads you through the steps to design your tables and relationships.
    http://www.rogersaccesslibrary.com/T...lationship.zip

    Good luck.

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

Similar Threads

  1. Replies: 13
    Last Post: 10-29-2012, 08:06 AM
  2. Replies: 1
    Last Post: 09-08-2012, 10:29 PM
  3. Help with hockey team history database
    By Hockeyguy1924 in forum Database Design
    Replies: 20
    Last Post: 06-15-2012, 03:05 PM
  4. Replies: 4
    Last Post: 01-03-2011, 10:54 PM
  5. Replies: 0
    Last Post: 11-11-2008, 07:15 AM

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