Results 1 to 3 of 3
  1. #1
    matey56 is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Jul 2020
    Posts
    136

    Displaying records based on fields in table

    Hi all,


    I have a form (we'll call it Form1) that I built and it only shows records where certain criteria are met in a related form (Form2). For example, if Field1 is null and Field2 is not null display the record). It works great. I just go into the design view of the query Form1 is based on and change the criteria of the field in the table to Is Null/Is Not Null.

    Here's the tricky part.....Form2 has a calculated field that's only displayed on the form and data isn't stored in any table. If I want to to build a criteria in Form1 that says if this calculated field Is Not Null display the record, how do I do that?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Can't. If field is not in Form1, how do you expect to apply filter? Actually, I am not really understanding described filter mechanism. If you want to provide db for analysis, follow instructions at bottom of my post.
    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
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2013 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Can you replicate the calculation in the record source query of Form 1 (are the fields needed for the calculation included in that query)? If yes you're done, just apply the desired criteria to it.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 0
    Last Post: 05-03-2021, 01:25 PM
  2. Replies: 5
    Last Post: 03-04-2014, 03:12 PM
  3. Replies: 4
    Last Post: 06-18-2013, 07:36 AM
  4. Replies: 1
    Last Post: 10-26-2011, 05:13 AM
  5. Replies: 1
    Last Post: 10-26-2007, 07:29 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