Results 1 to 4 of 4
  1. #1
    Yap is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Dec 2010
    Posts
    5

    Cool Match and Consolidate

    Original table
    Rec, T, Date In, Time In, Date Out, Time Out


    -----------------------------------------------------
    8, 110, I, 12/3/2010, 7:36, -, -
    9, 110, O, -, -, 12/3/2010 ,11:50
    10, 110, I, 12/3/2010, 12:57, -, -
    11, 110, O, -, - ,12/3/2010, 16:31

    Same table consolidated
    Rec, T, Date In ,Time In, Date Out, Time Out
    -----------------------------------------------------
    8, 110, C ,12/3/2010, 7:36, 12/3/2010, 11:50
    10, 110, C, 12/3/2010, 12:57, 12/3/2010, 16:31

    - = null I've put , to make it look better here.
    Rec is just the record number

    How can I accomlish this with a button on a form in MS Access?
    In a software I have (made maybe in Fox Pro) they have a menu option to do this. I want to do this too but in access.

    Yap

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    I'm confused. Could you explain a bit differently?

  3. #3
    SteveF is offline Generally AccessAble
    Windows XP Access 2010 (version 14.0)
    Join Date
    Nov 2010
    Location
    Fourth Corner
    Posts
    123

    Consider a table redesign

    I'd think really hard about redesigning your table instead. Consider something like this:

    RowID Long Integer or AutoNumber
    Log ID Long Integer
    Rec Long Integer
    EntryType Long Integer or Text
    EntryTime DateTime

    The data you supplied would then look like this:
    1 1 110 "Date In" 12/3/2010
    2 1 110 "Time In" 7:36
    3 1 110 "Date Out" 12/3/2010
    4 1 110 "Time Out" 11:50
    5 2 110 "Date In" 12/3/2010
    6 2 110 "Time In" 12:57
    7 2 110 "Date Out" 12/3/2010
    8 2 110 "Time Out" 16:31

    You can then use queries to re-format this data for display in a form or report, handling any "nulls" quite easily. In the long run, this will be easier to maintain and enhance than your original concept.

  4. #4
    Yap is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Dec 2010
    Posts
    5
    The "original" table is what the time and attendance device collects. Each record (row) is either IN or OUT. In the commercial software there's a match option in utilities that conoslidate the data per day and per cust so now you have one row with both IN and OUT. In the proccess it repaces the I and O to C (completed or consilidated). All this is done to the same table.

    The commercial software uses MS Access database but the app front I don't know but for sure is not access.

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

Similar Threads

  1. Cannot match same data in different tables
    By jitendrakalyan in forum Queries
    Replies: 3
    Last Post: 11-22-2010, 12:26 PM
  2. data type mis match
    By cowboy in forum Programming
    Replies: 3
    Last Post: 03-12-2010, 11:54 AM
  3. Consolidate multiple columns into one
    By COforlife in forum Access
    Replies: 17
    Last Post: 10-19-2009, 01:12 PM
  4. Match up table using only a few charecter?
    By bangemd in forum Queries
    Replies: 5
    Last Post: 06-05-2009, 04:15 AM
  5. Consolidate MDBs
    By RHall in forum Database Design
    Replies: 4
    Last Post: 01-06-2006, 12:31 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