Solved

new to access: How to limit data in reports

Posted on 2004-08-01
3
279 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
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 …

828 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