Results 1 to 5 of 5
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    Continuous form change parameter/criteria

    I have a continuous form with two buttons.

    I need the buttons to change the records to show a field with the criteria Is Null and then Is not null



    I'm wondering how to do this with vba...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Won't work with continuous form. If you change the textbox Visible property it will be applied to ALL instances of the control. However, can use Conditional Formatting to Enable/Disable control.
    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
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Yeah that's fine, basically I want to show all​ the records that have a field filled and then all those who don't.

    Then requery the form just after whatever vba

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Then you want to filter the form recordset, not 'show a field'. More than one way to accomplish. Maybe simplest is to set the form Filter property. Like

    Filter = "[fieldname] Is Null"
    FilterOn = True

    or

    Filter = "Not [fieldname] Is Null"
    FilterOn = True
    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
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    the criteria of the column already has show/select "is null" only

    will the filter change that criteria?

    (asking only because I am trying to understand etc)

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

Similar Threads

  1. Query Update Criteria Continuous Form Row ID
    By andrebmsilva in forum Queries
    Replies: 2
    Last Post: 12-13-2012, 04:39 AM
  2. Replies: 1
    Last Post: 12-04-2012, 02:50 PM
  3. Change Text in Parameter Dialogue Box
    By Traceyann in forum Queries
    Replies: 5
    Last Post: 08-29-2012, 10:49 PM
  4. Replies: 3
    Last Post: 12-08-2011, 10:52 AM
  5. Replies: 1
    Last Post: 10-22-2009, 03:32 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