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  

Display a List of all Form's ServerFilter Property



 
 
Thread Tools Display Modes
  #1  
Old October 14th, 2005, 05:21 AM
Aubrey
external usenet poster
 
Posts: n/a
Default Display a List of all Form's ServerFilter Property

How can I Loop throught the Forms Collection, and check each one for non
blank ServerFilter Propreties?

Occasionally, while Debugging, a ServerFilter gets defined (by the
underlying processes), and I forget to scan all edited Forms for these
instances.

(Just moved interstate, and all my books are still packed. Did not find
anything on MSDN CD or Google (yet...).
--
Aubrey Kelley
  #2  
Old October 14th, 2005, 11:33 AM
Peter Yang [MSFT]
external usenet poster
 
Posts: n/a
Default Display a List of all Form's ServerFilter Property

Hello Aubrey,

You may want to consider using CurrentProject.AllForms and DoCmd.OpenForm

http://msdn.microsoft.com/library/de...us/vbaac10/htm
l/accolAllForms.asp


Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

  #3  
Old October 16th, 2005, 08:52 PM
Aubrey
external usenet poster
 
Posts: n/a
Default Display a List of all Form's ServerFilter Property

CurrentProject works GREAT for displaying AllForms.Name

What is the syntax to Display the Forms(0).ServerFilter Property?

I tried the DoCmd.OpenForm (frmName)
but the OnCurrent Events sidetracked that . . .
so, there has to be a way to Open the Form (in Design Mode?) . . .

--
Aubrey Kelley


"Peter Yang [MSFT]" wrote:

Hello Aubrey,

You may want to consider using CurrentProject.AllForms and DoCmd.OpenForm

http://msdn.microsoft.com/library/de...us/vbaac10/htm
l/accolAllForms.asp


Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.


  #4  
Old October 16th, 2005, 09:09 PM
Aubrey
external usenet poster
 
Posts: n/a
Default Display a List of all Form's ServerFilter Property

Ouch!! Bitten by the "Group Shout" bug. This code works good for me:

Public Sub SrvrFltr()
Dim obj As AccessObject, dbs As Object, Str As String
Set dbs = Application.CurrentProject
For Each obj In dbs.AllForms
Str = Left$(" ",
(30 - Len(obj.Name)))
DoCmd.OpenForm obj.Name, acDesign
If Len(Forms(0).ServerFilter) 0 Then
Debug.Print obj.Name; Str; Forms(0).ServerFilter
End If
DoCmd.Close
Next obj
End Sub
--
Aubrey Kelley


"Aubrey" wrote:

CurrentProject works GREAT for displaying AllForms.Name

What is the syntax to Display the Forms(0).ServerFilter Property?

I tried the DoCmd.OpenForm (frmName)
but the OnCurrent Events sidetracked that . . .
so, there has to be a way to Open the Form (in Design Mode?) . . .

--
Aubrey Kelley


"Peter Yang [MSFT]" wrote:

Hello Aubrey,

You may want to consider using CurrentProject.AllForms and DoCmd.OpenForm

http://msdn.microsoft.com/library/de...us/vbaac10/htm
l/accolAllForms.asp


Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.


  #5  
Old October 17th, 2005, 02:42 AM
Peter Yang [MSFT]
external usenet poster
 
Posts: n/a
Default Display a List of all Form's ServerFilter Property

Hello Aubrey,

Nice to see you found the solution. It will surely benefit the community.
:-)

Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===



This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
Thread-Topic: Display a List of all Form's ServerFilter Property
thread-index: AcXSjXTVO7o9JiNrTxaYA0RpbpByuA==
X-WBNR-Posting-Host: 69.221.213.233
From: =?Utf-8?B?QXVicmV5?=
References:



Subject: Display a List of all Form's ServerFilter Property
Date: Sun, 16 Oct 2005 13:09:04 -0700
Lines: 53
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.access.forms
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.access.forms:64274
X-Tomcat-NG: microsoft.public.access.forms

Ouch!! Bitten by the "Group Shout" bug. This code works good for me:

Public Sub SrvrFltr()
Dim obj As AccessObject, dbs As Object, Str As String
Set dbs = Application.CurrentProject
For Each obj In dbs.AllForms
Str = Left$("

",
(30 - Len(obj.Name)))
DoCmd.OpenForm obj.Name, acDesign
If Len(Forms(0).ServerFilter) 0 Then
Debug.Print obj.Name; Str; Forms(0).ServerFilter
End If
DoCmd.Close
Next obj
End Sub
--
Aubrey Kelley


"Aubrey" wrote:

CurrentProject works GREAT for displaying AllForms.Name

What is the syntax to Display the Forms(0).ServerFilter Property?

I tried the DoCmd.OpenForm (frmName)
but the OnCurrent Events sidetracked that . . .
so, there has to be a way to Open the Form (in Design Mode?) . . .

--
Aubrey Kelley


"Peter Yang [MSFT]" wrote:

Hello Aubrey,

You may want to consider using CurrentProject.AllForms and

DoCmd.OpenForm


http://msdn.microsoft.com/library/de...us/vbaac10/htm
l/accolAllForms.asp


Thanks & Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader

so
that others may learn and benefit from your issue.




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I alphabetize my email display as list? Star Laker General Discussions 2 September 22nd, 2005 02:53 AM
Drop-Down List does not display choices Bill Freeze General Discussion 1 June 14th, 2005 03:31 PM
How to display list box values in data access page? rebecca2001 Using Forms 1 December 15th, 2004 10:05 PM
IF fields in forms - call up a FORMDROPDOWN list? JKC General Discussion 1 August 20th, 2004 01:34 AM
Use dropdown list to display more than one record from a table Cheryl Worksheet Functions 6 May 6th, 2004 02:08 PM


All times are GMT +1. The time now is 06:42 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.