Results 1 to 4 of 4
  1. #1
    TaylorH24 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jan 2017
    Posts
    2

    Creating an "expired" group in a report

    I'm having some trouble with creating groups for my report. I'm unsure whether it can actually be done so I thought I'd ask here.

    What I have are a load of records with due dates assigned to each one and I've made a report with shows expired records and records expiring in the next 30 days.

    I'd like to create two groups in this report, one group showing records that have already expired and another showing the ones that are expiring in the next 30 days.



    Can this be done?

    Thanks for any help in advance.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Yes, make a field in the query,
    IIF(DateAdd("d",30,[myDate])>=[ExpDate],"About to Expire",IIF([myDate])>=[ExpDate],"Expired","Good")

  3. #3
    TaylorH24 is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jan 2017
    Posts
    2
    Sorry, do you mind explaining further? I should have mentioned I'm relatively new to using access and haven't done much work with queries, not enough to know where to put that expression anyway.

    Thanks for the help.

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    In the query, there are many empty columns in the grid.
    pick an empty column, type in the code given.

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

Similar Threads

  1. Replies: 6
    Last Post: 01-04-2017, 08:45 AM
  2. Replies: 4
    Last Post: 12-20-2015, 12:16 PM
  3. Replies: 3
    Last Post: 12-06-2014, 03:59 AM
  4. Can report items be part of a "group"?
    By tstoneami in forum Reports
    Replies: 2
    Last Post: 08-13-2013, 11:51 AM
  5. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM

Tags for this Thread

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