Solved

new to access: How to limit data in reports

Posted on 2004-08-01
3
249 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
Comment Utility
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
Comment Utility
Thanks That did what I wanted!!
0
 
LVL 34

Expert Comment

by:flavo
Comment Utility
Cheers mate!
Good luck!

Dave
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

763 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

11 Experts available now in Live!

Get 1:1 Help Now