A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

prevent application of filters that pull WAY too many records to the client



 
 
Thread Tools Display Modes
  #1  
Old November 2nd, 2006, 03:03 PM posted to microsoft.public.access.forms
Jesse Aufiero
external usenet poster
 
Posts: 24
Default prevent application of filters that pull WAY too many records to the client

I've created a form in 'single form view' for users. The form always opens
with a filter to greatly limit the number of records that are returned to
the client. However, I'd like the users to be able to modify the filter
criteria using 'Filter by Form' to access other underlying records that
aren't accessible via the initial filter, but I DO NOT want the user to be
able to clear ALL filter criteria, because I don't want the users to be able
to pull all records to the client. Is there a way to allow filtering by
form, but prevent the clearing of all filter criteria? Or to somehow
prevent the application of a filter that pulls over X number of records?


  #2  
Old November 2nd, 2006, 04:10 PM posted to microsoft.public.access.forms
Sprinks
external usenet poster
 
Posts: 531
Default prevent application of filters that pull WAY too many records to t

Jesse,

I don't know whether or not the programmer has access to the FilterByForm
tool to prevent clearing the filter, but you could easily build your own and
prevent the clearing.

You don't mention *why* you wish to limit the number of records. If it is
to limit network traffic, I can't think of a way to limit them prior to
applying the filter. However, if it's for some other reason such as limiting
the number of locked records so that they're available for edit by others,
you can apply the filter first, check the RecordCount, and display a "The
filter returns over x records. Please apply a finer filter." message, and
allow the user to fine-tune it.

Hope that helps.
Sprinks

"Jesse Aufiero" wrote:

I've created a form in 'single form view' for users. The form always opens
with a filter to greatly limit the number of records that are returned to
the client. However, I'd like the users to be able to modify the filter
criteria using 'Filter by Form' to access other underlying records that
aren't accessible via the initial filter, but I DO NOT want the user to be
able to clear ALL filter criteria, because I don't want the users to be able
to pull all records to the client. Is there a way to allow filtering by
form, but prevent the clearing of all filter criteria? Or to somehow
prevent the application of a filter that pulls over X number of records?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.