Results 1 to 4 of 4
  1. #1
    sharkey_lsu is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    31

    Assign Sequential Number to Dates

    I am working with a developer to create a database. One thing that needs to happen is for there to be Day numbers that are determined by the sequential order of the Dates of the records. Could someone please provide a little information as to how to achieve this? An example of the result that I am hoping to get:



    June 3, 2016 Day 1
    June 3, 2016 Day 1
    June 3, 2016 Day 1
    June 5, 2016 Day 2
    June 5, 2016 Day 2
    June 5, 2016 Day 2
    June 8, 2016 Day 3
    June 8, 2016 Day 3
    June 8, 2016 Day 3
    June 10, 2016 Day 4
    June 10, 2016 Day 4

    As shown above, the Day No is based on the sequence of the Date. And if someone were to go in and add a June 2, 2016...then all of the Day Numbers would need to shift accordingly. Is this possible?

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Hmmm.. Please tell us more.
    Perhaps you could describe why there are 3 (June 8, 2016 Day 3) records. Some context for your post would be helpful to readers.

  3. #3
    sharkey_lsu is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Aug 2013
    Posts
    31
    My apologies. Here is a description in a nutshell:

    The database is an inspection management system. Multiple inspectors will go to a site and check requirements for infractions each using offline backend databases. They will at any time available, connect and sync the data via SQL Server so that it is shared. These inspections will take place over multiple days and each day needs to be assigned a Day Number.

    The problem is that the inspectors will not necessarily be working on the same sequential date/day. IE when Inspector A creates a new day (Day 1) and makes findings, the findings will all be associated with the Day/Date that he has created. Inspector B might not start his inspection until several days in, therefore when he creates a New Day, the offline DB sees this as Day 1 (assuming the inspectors do not have internet connection to sync their data). However, once he syncs, all of his data should be associated with the correct Day (if the dates match the Day should be assigned).

  4. #4
    orange's Avatar
    orange is online now Moderator
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    But won't the inspections(comments/notes/infractions...) all refer to a property or site. (The inspected thingy)
    I can see an InspectionStartDate and possibly InspectionEndDate, and individual notes/comments be Inspector-NameStamped and DateTime stamped. I would think each Inspection would have a unique identifier, and each site a unique identifier.

    A site has 1 or many inspections
    An inspection has 1 or many Inspectors
    An Inspector can make 0,1 or many Comments related to an Inspection

    If you plan Inspections, I could see a PlannedInspection---proposed StartDate, proposedEnddate sort of thing also.

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

Similar Threads

  1. Next sequential number
    By Jetski in forum Forms
    Replies: 11
    Last Post: 02-20-2014, 02:24 PM
  2. Sequential number problem
    By jfn15 in forum Programming
    Replies: 1
    Last Post: 06-21-2012, 09:33 AM
  3. Replies: 18
    Last Post: 05-15-2012, 03:44 PM
  4. Multiple Min/Max dates by sequential dates
    By chucku in forum Access
    Replies: 2
    Last Post: 04-05-2012, 07:43 AM
  5. Assign A Sequential Number To A Table Row
    By KramerJ in forum Programming
    Replies: 11
    Last Post: 04-08-2009, 08:48 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