Jeremy Toves
itsame2000 at sbcglobal.net
Tue Aug 23 09:07:46 CDT 2005
Thanks again. The first solution seems more simple. If it has problems, then I will try this one. Jeremy "John W. Colby" <jwcolby at colbyconsulting.com> wrote: The other way to do this is to open the form with no recordset, or with a recordset (SQL Statement) with a where clause that pulls no records - perhaps with a WHERE WorkOrder = "Nonsense" or something like that. This causes the form to open with no records. Then in OnOpen just place the name of a saved query into the form's RecordSource. Doing that will cause the form to requery, displaying the records that match the checkbox. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Tuesday, August 23, 2005 9:49 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Filter Problems Thanks! That sounds like an easy solution. I will try that tonight. Jeremy "John W. Colby" wrote: Open the form with the checkbox set to a default value, then in OnOpen requery the form - me.requery. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeremy Toves Sent: Tuesday, August 23, 2005 12:31 AM To: Access Developers Subject: [AccessD] Filter Problems I have a popup form that lists work orders as a continuous form. When it comes up, I want it only to list the active work orders. There is a check box on the popup that I can check to display all. This check box is meant to toggle back and forth between showing all and just the active work orders. The check box works, except when the form first comes up, it displays nothing. How can I have it display the actives without having to rewrite the SQL statement in VBA each time? I'm thinking there is a quick filter that can be used. Thanks, Jeremy -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com