Results 1 to 4 of 4
  1. #1
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134

    how to record changes in a form for comparison purposes...

    Hi there!



    I have this one form connected to this main table ("SalesActivities").

    Some Fields in the "SalesActivities" table:
    SalesActivityID
    SalesActivityResponsible
    SalesActitivyStatus ----->{Planned, Confirmed, Realised}


    One of the fields in "SalesActivity" contains three possible status: {Planned, Confirmed, Realised}.

    At one point, when entering the data the status can be "Planned". One or two days later, the status can change to "Confirmed" or "Realised" and so on...

    At the end of the month, I would like to compare if a sales activity status moved from one status to another, or I would like to make a report of all salesactivities with the status "Planned", or "Confirmed", or "Realised"

    Right now I just have to tables:

    Table One:
    "SalesActivities"
    {SalesActivityID, SalesActivityResponsible, SalesActivityStatus}

    Table Two:
    "Status"
    {StatusID, SalesActivityStatus}


    Some tips on how I should approach this challenge (at least it is a challenge for me!)

    I will have an EDIT_Click() button where I will allow Me.AllowEdits = True... but after that I have no idea how to record the changes... :-( not only I want to rewrite the Status, but record the time of the change at the "SalesActivityID" level.


    Thanks in advance!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Search on audit trail. A report on a chosen status could be done with a parameter query or:

    http://www.baldyweb.com/wherecondition.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,360
    I think you need a status history table (tblStatusHist)
    {HistoryID, SalesActivity_FK, Status_FK, StatusDate}
    where FK means foreign key from the related table. Something tells me you might be using a lookup field in your table:
    One of the fields in "SalesActivity" contains three possible status: {Planned, Confirmed, Realised}.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Susy is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2014
    Posts
    134
    Thanks for both suggestions. I still need to figure out how this works.

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

Similar Threads

  1. Keeping Access 2003 for ULS purposes viable?
    By vermette09 in forum Security
    Replies: 22
    Last Post: 05-13-2014, 07:18 AM
  2. Combo box for selection purposes only
    By msmithtlh in forum Forms
    Replies: 3
    Last Post: 03-21-2013, 01:19 PM
  3. Comparison
    By raytackettsells in forum Queries
    Replies: 2
    Last Post: 08-06-2012, 05:30 PM
  4. Replies: 4
    Last Post: 05-21-2012, 08:21 AM
  5. understanding excel for access purposes
    By metokushika in forum Programming
    Replies: 1
    Last Post: 10-24-2011, 11:51 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