Results 1 to 2 of 2
  1. #1
    ybg1 is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    23

    FilterOn = False

    Hello,



    I have a main form with a continuous subform. I am filtering the subform


    by using the following code from the main form and it works fine.



    Private Sub Form_Current()


    strWhere = "[Seder_Code]=" & G_Seder & " AND " & "[Bahoor_Code]=" & G_NameCode




    Me.SubFormFines.Form.Filter = strWhere


    Me.SubFormFines.Form.FilterOn = True


    End Sub



    The problem starts when I try to enter details on the continuous subform.


    For example when I have filtered 3 records and I want to amend the third record the cursor jumps to the first line.



    I've realized that it happens because the subform is still on FilterOn = True



    I would like to turn off the filter and to be able to change the details on the subform and still having only the 3 records that have been filtered before.



    Where can I switch off the filter and how?



    Thanks

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Turning FilterOn to False isn't going to keep just the 3 records. It is jumping because you are filtering in the main form's On Currentevent. Why do you need to do that? What is the connection between the main form and the subform. It should be set up so that you just navigate to a record on the main form and then it would automatically filter the subform to fit whatever the master/child links were set. So, if those fields you are filtering the subform by are not in the main form's record source, I would be trying to figure out why as it would appear that you wouldn't have the table structure set correctly (potentially).

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

Similar Threads

  1. Enabled = False
    By Juan4412 in forum Forms
    Replies: 2
    Last Post: 04-19-2011, 06:05 PM
  2. Replies: 1
    Last Post: 02-18-2011, 04:04 AM
  3. Form combo box not working with AllowEdits = False
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 02-04-2011, 05:08 PM
  4. Yes/No True/False
    By DSTR3 in forum Access
    Replies: 5
    Last Post: 12-04-2010, 05:56 PM
  5. True or false
    By tleec in forum Queries
    Replies: 1
    Last Post: 02-01-2008, 10:41 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