473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Access 2007 and Filtering

I'm working on testing a large application with Access 2007. It has been running under 2003 and XP with no obvious errors.

However with 2007 many forms seem to have lost the ability to filter. When the form is loaded, the record source specifed, a filter applied, and filtering set to on, either no records are displayed, or ALL of the records displayed.

Click on the "Toggle Filter" on the ribbon and voila, the resordset is displayed.

It's acting like there's an Access Option that says "Disable Programmatic Filter switch"

The code is shown below
/CODE/
Me.Filter = sBuildFilter
Me.FilterOn = True
' Save Filter info for report
SaveSetting APP_NAME, ROUTINE_NAME, "Filter", sBuildFilter
txtFilter = sBuildFilter
Me.Requery
/CODE/

Putting a Watch on "Me.FilterOn" shows TRUE when run in 2003, but remains FALSE when run under 2007. Same results when FilterOn is moved up a line.

Anyone working with the 2007 beta having similar problems

Dave
Oct 25 '06 #1
1 3843
MMcCarthy
14,534 Expert Mod 8TB
There are always filter problems and they seem to occur a lot during version changes. Me.Filter = "" has been known to turn a filter off so in your example if sBuildFilter = "" it could be turning the filter off.

I haven't done any work in 2007 yet but I know they have been doing a lot of work on filters.

Check out this blog ...

http://blogs.msdn.com/access/archive...11/595718.aspx

I'm working on testing a large application with Access 2007. It has been running under 2003 and XP with no obvious errors.

However with 2007 many forms seem to have lost the ability to filter. When the form is loaded, the record source specifed, a filter applied, and filtering set to on, either no records are displayed, or ALL of the records displayed.

Click on the "Toggle Filter" on the ribbon and voila, the resordset is displayed.

It's acting like there's an Access Option that says "Disable Programmatic Filter switch"

The code is shown below
/CODE/
Me.Filter = sBuildFilter
Me.FilterOn = True
' Save Filter info for report
SaveSetting APP_NAME, ROUTINE_NAME, "Filter", sBuildFilter
txtFilter = sBuildFilter
Me.Requery
/CODE/

Putting a Watch on "Me.FilterOn" shows TRUE when run in 2003, but remains FALSE when run under 2007. Same results when FilterOn is moved up a line.

Anyone working with the 2007 beta having similar problems

Dave
Oct 25 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
22
by: TC | last post by:
I have an Access database application with a lot of custom row functions written in VBA. In other words, a lot of queries contain calculated fields which use functions defined in the modules. I...
2
by: ChrisB | last post by:
Hello: I am writing an application using C# that needs to support several queries that limit the number of returned records through the use of filtering and was hoping to get some opinions on...
10
by: Hank | last post by:
We have just recently migrated the data from our Access 2000 backend to Postgres. All forms and reports seem to run correctly but, in many cases, very slowly. We do not want to switch over until...
27
by: Wayne | last post by:
I've been clicking around Access 2007 Beta 2 and can't see the custom menu bar designer. Is it in the beta? Maybe I'm blind. The question that comes to mind is: Will custom menu bars be the same...
21
by: lesperancer | last post by:
I've got an access97 reporting mdb that pulls data (77,000 rows) from a sql server table into a local table to run reports if the local table is part of the reporting MDB, the insert statement...
0
by: Philippe Geril | last post by:
GAME-ON 2007 November 20 - 22, 2007 CALL FOR PAPERS University of Bologna Bologna, Italy Organized by EUROSIS-ETI
0
by: Yarik | last post by:
Hello, Here is a sample (and very simple) code that binds an Access 2003 form to a fabricated ADO recordset: ' Create recordset... Dim rs As ADODB.Recordset: Set rs = New ADODB.Recordset '...
1
foreigner
by: foreigner | last post by:
I have created a form in Access, which has fields like name, sirname, email, city, country.... All i want is to send emails to friends with filtering city. Like i can email all of them or select a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.