Results 1 to 7 of 7
  1. #1
    fainterm is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    17

    Report for changes made to table

    What would be the easiest way to create a report where my super users could put in a data range to show which records in a table were changed within the last month?

    Basically the users only have access to a single form. On that form, they have unbound controls where they input search criteria. Bound controls display the results below, and a list box is used to update a "location" field. I would like to be able to have a report where I could say "show me all of the records in the table that have been modified in the last 30 days".

    Please let me know if I can provide any clarity to the question. Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    You have a field that records the last edit date?
    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.

  3. #3
    fainterm is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    17
    I do have a field on the table that denotes the last modified date. Thanks for the quick response!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    Try:

    SELECT * FROM table WHERE [date field] > Date() - 30;
    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.

  5. #5
    fainterm is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    17
    Sorry for my delayed response as I got caught up in another project. The line of code you have there. Are you suggesting running a query against the date field? Or are you putting that line of code somewhere in the report properties?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    That is the SQL statement for a query or the RecordSource of report.
    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.

  7. #7
    fainterm is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    17
    Got it! Thank you sir. Marking this thread solved!

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

Similar Threads

  1. Replies: 4
    Last Post: 12-23-2013, 08:20 AM
  2. Replies: 15
    Last Post: 11-18-2013, 01:49 PM
  3. Replies: 5
    Last Post: 07-26-2012, 07:53 AM
  4. Database made on XP won't merge on 7
    By teirrah1995 in forum Import/Export Data
    Replies: 2
    Last Post: 08-06-2011, 02:07 AM
  5. I made my tables and now Im stuck. HELP
    By the extinguisher pro in forum Database Design
    Replies: 7
    Last Post: 06-02-2011, 04:14 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