Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2011, 03:12 PM
Authorized User
 
Join Date: Jul 2007
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Me.Visible = false not working Daj Access VBA 6 January 27th, 2009 12:17 PM
Boolean True/False to Yes/No peterasimpson VB How-To 2 February 6th, 2006 07:58 PM
Page.IsCrossPostBack always is false!!! cfgongming ASP.NET 2.0 Professional 0 January 20th, 2006 05:10 AM
return (false) crmpicco Javascript 1 October 24th, 2005 11:39 AM
EOF always false with wildcard pacejohn Access VBA 1 August 20th, 2004 12:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.