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  

docmd



 
 
Thread Tools Display Modes
  #1  
Old October 17th, 2005, 05:38 AM
rodchar
external usenet poster
 
Posts: n/a
Default docmd

hey all,

i'm using docmd.openreport and i have a question about 1 of the parms:
FilterName

how do i use this parameter? i'd like to be able to open my report based on
whether a field is true or false.

thanks,
rodchar
  #2  
Old October 17th, 2005, 05:46 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default docmd

The FilterName is not really useful. Use the WhereCondition instead.

Example: if you want to open a report limited to only the records where the
Inactive field is false:
DoCmd.Openreport "Report1", acViewPreview, , "Inactive = False"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rodchar" wrote in message
...

i'm using docmd.openreport and i have a question about 1 of the parms:
FilterName

how do i use this parameter? i'd like to be able to open my report based
on
whether a field is true or false.

thanks,
rodchar



  #3  
Old October 17th, 2005, 06:15 AM
rodchar
external usenet poster
 
Posts: n/a
Default docmd

thank you.

"Allen Browne" wrote:

The FilterName is not really useful. Use the WhereCondition instead.

Example: if you want to open a report limited to only the records where the
Inactive field is false:
DoCmd.Openreport "Report1", acViewPreview, , "Inactive = False"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"rodchar" wrote in message
...

i'm using docmd.openreport and i have a question about 1 of the parms:
FilterName

how do i use this parameter? i'd like to be able to open my report based
on
whether a field is true or false.

thanks,
rodchar




 




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
DoCmd Questions (Preferences) [email protected] General Discussion 2 September 4th, 2005 08:28 PM
Docmd: GoToControl renold1958 General Discussion 4 July 29th, 2005 06:59 AM
the vb docmd printout has page control does sendobject? Bo Duke General Discussion 2 May 3rd, 2005 05:19 PM
Need docmd code to display multiple pages of report Bartman Setting Up & Running Reports 3 January 7th, 2005 04:49 PM
Docmd output to sample Stephen Setting Up & Running Reports 3 May 24th, 2004 07:31 AM


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