Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

new to access: How to limit data in reports

Posted on 2004-08-01
3
Medium Priority
?
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
flavo earned 400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

722 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