Results 1 to 4 of 4
  1. #1
    equestrian is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2015
    Posts
    15

    Continuous Form Filter

    I have a continuous form frmDynoSheet based on a query qryDynoSheet. When the form is Loaded it is filtered by qryDynoSheetNotComplete on a field tblUnitsBuilt.Complete that is a check box. If it is Yes I do not want it listed when the form is loaded. There is a button by each record that goes to another form frmDynoInfo. As part of the information that is filled in on that form the tblUnitsBuilt.Complete may be marked as Yes. When frmDynoInfo is closed and the user is back on frmDynoSheet, I still want to be able to see the record that was just marked as tblUnitsBuilt.Complete=Yes.



    If the user goes to frmDynoInfo and enters information, that information is displayed correctly when they click close and return to frmDynoSheet. However, if in that information tblUnitsBuilt.Complete is marked as Yes that record is not displayed when they return. I assume it is being filtered by qryDynoSHeetNotComplete. On frmDynoSheet On Focus there is a requery. If that is not there the other information that was just entered in frmDynoInfo is not displayed.

    Any recommendations?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    the main form needs to update.
    in the edited form, in the form.UNLOAD event, have it refresh the main screen, forms!frmDynoSheet.requery

  3. #3
    equestrian is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2015
    Posts
    15
    Thank you for the response.

    I don't think I explained myself correctly. The problem I am having is not that the frmDynoSheet doesn't refresh. It does. My problem is that when it refreshes the records that have tblUnitsBuilt.Complete marked as Yes are filtered after the form frmDynoInfo is closed. I only want this to happen when frmDynoSheet is originally opened.

  4. #4
    equestrian is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Sep 2015
    Posts
    15
    I created a field CompleteFilter. When the frmDynoSheet an event runs a query that updates the value for CompleteFilter to Yes. If the user clicks on the Complete check box to change the value to Yes an event runs to change the value of CompleteFilter to No. In frmDynoInfo if the user changes the value of Complete to Yes an event runs to change the value of CompleteFilter to No. The qryDynoSheet the record is displayed if Complete is No OR CompleteFilter is No.

    It is working now.

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

Similar Threads

  1. Filter continuous form by combo box
    By revolution9540 in forum Forms
    Replies: 10
    Last Post: 08-04-2015, 02:16 PM
  2. Filter a continuous form using a combo box
    By Chky071 in forum Access
    Replies: 5
    Last Post: 05-04-2015, 08:06 AM
  3. Replies: 1
    Last Post: 11-24-2011, 07:45 AM
  4. Filter a Continuous Form
    By michel_annie22 in forum Forms
    Replies: 7
    Last Post: 11-09-2011, 07:34 AM
  5. Replies: 2
    Last Post: 04-12-2011, 08:33 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