Solved

new to access: How to limit data in reports

Posted on 2004-08-01
3
261 Views
Last Modified: 2008-03-06
i want to create a report that will be limited on a value I pass in to it. I've never used access before so i want to see which options are available for that and which you would recommend (and how to use them :).  I need a walk through like even how to pass the value to the report.

Thanks
David
0
Comment
Question by:NHBFighter
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
flavo earned 100 total points
ID: 11689583
To open a report say from a button use,

Private sub cmdMyButton_Click()
    Docmd.openReport "rptMyReport", acViewpreview, , "ID = " & Me.id.Value
   '                              report name,   view                , where condistion (without where key word)
End sub

this example will open the report name rptMyReport and only show records where the id = the value ID from the form.

idea??  more help???  

Dave
0
 
LVL 4

Author Comment

by:NHBFighter
ID: 11689780
Thanks That did what I wanted!!
0
 
LVL 34

Expert Comment

by:flavo
ID: 11689799
Cheers mate!
Good luck!

Dave
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now