Results 1 to 7 of 7
  1. #1
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283

    Showing records based on certain date

    I have a database with a main form and 4 subforms. What I am trying to do is have a query button that will return all the records based on the followup date of one of the subforms.



    So basically the database will look exactly as it does with all records only it will just sow the ones with the follow up date <= Now()

    Thanks in advance

  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,770
    Use the query techniques described in your other thread https://www.accessforums.net/access/...rms-34639.html

    Apply criteria to the Last Modified Date field.

    However, since most of the records don't have a value in this field and if you want those records, include Is Null in the criteria:

    <=Now() Or Is Null
    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
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    I have found that that does not return the data in the form but as a datasheet. I have found the filter by foirm option but for some reason it will not let you use it on that field...not sure if it is because it uses DMAX or not - any thoughts

  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,770
    Don't understand 'does not return the data in the form but as a datasheet'.

    The suggested filter criteria seems to work for me.

    I do seem to recall filter by form doesn't work with calculated fields.
    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
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    Yeah what I did was similar to the Last Modified date you showed me to diplay the Next activity date from the subform onto the main form.....Filter by Form will not work on a field that is not dirently in the table or query that drives the form......go figure . I liked filter by from because it kept what the users sees exactly the same in terms of their UI layout - When I try to use a separate query it returns the results in datasheet view and they cannot enter any updates just view the data

  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,770
    Anything involving UNION or GROUP BY will not be an editable recordset.
    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
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    ok - so I guess I am out of luck - I wouldn;t have thought it was that unique a thinkg to want to do....but that is why I am not an expert

    Thanks

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

Similar Threads

  1. Replies: 5
    Last Post: 10-27-2011, 10:25 AM
  2. Replies: 1
    Last Post: 10-26-2011, 05:13 AM
  3. Exporting records based on date
    By justinwright in forum Import/Export Data
    Replies: 35
    Last Post: 05-11-2011, 04:53 PM
  4. Replies: 3
    Last Post: 05-03-2011, 01:36 PM
  5. Replies: 3
    Last Post: 09-29-2009, 07:08 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