473,485 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form Recordsets, Requery and FilterOn=False

I was just working on an A97 app in which has lots of filtering and
dynamic changing of the recordsets, but also uses bookmark
navigation of subsets of records. I was trying to implement some
fixes for some very rare conditions where the FIND dropdown doesn't
list the same dataset as the form.

I always code bookmark navigation with a With Me.RecordsetClone, and
not thinking too carefully, I added a requery after the first
NoMatch and then another try at the .FindFirst. This worked! Then,
since filters could be in place that are not reflected in the find
dropdown, I removed the filter and repeated the .FindFirst if there
was a .NoMatch after the requery. This one told me that the With
object had been invalidated.

What this tells me is that in A97:

1. a requery within a With Me.RecordsetClone block does *not*
invalidate the RecordsetClone.

2. a Me.FilterOn = False *does* invalidate the RecordsetClone.

This rather surprises me. I'd have expected *both* to invalidate it.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 21 '06 #1
0 1321

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
18727
by: Brian Newman | last post by:
I've got what is actually a triple-layer nested form. That part works fine. I've got the first subform related by the right key field to the main form, then I've got the second subform related to...
3
2891
by: Afton | last post by:
I would like to make a form that filters a report by Supervisor and by starting and ending date. I have the supervisors in a combo box, and that works. However, I do not know how to code to let...
2
2819
by: cefrancke | last post by:
I have a form (no underlying record set) that has two separate sub-forms on it. Each sub-form has data from two different tables. Above each sub-form there is one unbound combo box with a SQL...
4
1894
by: Bob | last post by:
Trying to repaint a form named fcon using a new filter: 'Repaint the form with the new data Forms!fcon.FilterOn = False Forms!fcon.Filter = "RecNo = " & currecno & " AND Currentvalue = -1"...
4
1799
by: Taylor | last post by:
Hello, This is driving me crazy, but I have a form with a filter button and when it is selected if there are no results then it is supposed to open a subform (error box). Below is my code: ...
1
23776
by: Denis | last post by:
How do I set up a button to remove a form filter. I can get a button the edit the form filter by nowt remove it. I don't want the have the use the remove filter on the records menu Thank you
15
5904
by: scatterbrain | last post by:
I'm trying to create a popup form so that my peers have and easy way to filter information by 4 categories: Presenter, Evaluator, Date, or Topic. All this information is stored in my Data table and I...
1
1059
by: iliast | last post by:
Hello to everybody. I have a Search Form with two options as criteria. "Days" and "Works" of each day . Days is a combo box with the days of the week. Data of combo box are records of the Days Table...
1
2487
by: jeannin | last post by:
I have a table with the following text fields Status group_type query_hits PLATFORM Group_No_7 Group_No_3 I need to be able have a form which uses combo boxes as required and optional...
0
6960
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
7116
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6825
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
7275
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
5418
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4857
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...
0
3058
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1376
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.