Hide selected records in a subform

NachoMan

Registered User.
Local time
Today, 04:33
Joined
Sep 28, 2003
Messages
56
Friends,
Haven't seen a similar post yet, so here goes. I have a typical QBF search form which returns criteria matches in a continuous subform (fsubSearchResults) at the bottom of my main form. Oftentimes I want to isolate (or remove) certain records returned in the results subform. I don't want the records to be removed from the database, rather I just want to take them out (or hide) them from the search results recordset.

I'm sure someone will just say to further filter the recordset, but that is not what I need to do here. The returned records match all of the search criteria fine, but not all of the record data is equally reliable, since it comes from various sources. So, some records, while they may match the search criteria, may not be the best data. I would like to be able to hide or remove them from the search results recordset.

I was thinking that I could put a radial button on the subform that when clicked would hide that specific record in the recordset. I tried to put this simple code in the AfterUpdate event of the radial button:

Code:
me.detail.visible = false

This, of course, does not work as it hides all records. Is there another way to write this code or does anyone have any idea that would give me the same basic result that I'm looking for? Hopefully I've explained myself clearly. Thanks for any ideas, feedback.

-Lou
 
I was working on something earlier that might do the trick for you. A disconnected recordset.

http://www.access-programmers.co.uk...05&PHPSESSID=aaee7bbf9e4dd9428cf8b892959d899b

It may work for you.

Essentially you pull your data and put it into a manually created recordset, then set the forms recordset to that. So long as you use a dynamic recordset, you can just delete the record from the view and it won't anything in the database at all, just the manually created recordset.
 

Users who are viewing this thread

Back
Top Bottom