Solved

Enter parameter value when printing

Posted on 2013-05-14
2
381 Views
Last Modified: 2013-05-14
Hello experts! I have a problem I have been struggling with for a while and can't find what is missing. I have set up a pretty simple database to enter some orders for our trade show shipments. When a new order is entered, I need it to print out the report for just that new order.

However, when I hit the "Print" button, it asks for the parameter value for printing. Even if I put in the right order number, it still will print all of them in the database.

I have set this up on several other databases and it works perfectly. I think I have some issues with the references or relationships, maybe, that are making it not work right, as I have mirrored exactly what I've done before. On this one, though, it just isn't working right and I cannot figure out what is wrong.

I have attached the complete DB as I figured that would be a lot easier than trying to describe what all I've done in the setup.

Thanks in advance for any help anybody can give me.....I'm hoping there is something simple that I just cannot see.

Robert Monroe
Trade-Show.accdb
0
Comment
Question by:rkm360
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39164981
open your report in design view then hit F4
look in the Data tab and delete the content of the Filter Property
then save the report

in your code that opens the report

change this line

    DoCmd.OpenReport "Trade Show Orders", acViewNormal, "", "[Trade_Show_Orders_OrderID]=[Forms]![Trade_Show_Orders_Enter]![OrderID]", acNormal


with


     DoCmd.OpenReport "Trade Show Orders", acViewNormal, "", "[Trade Show Orders_OrderID]=" & Me.OrderID, acNormal




.
Trade-Show.accdb
0
 

Author Closing Comment

by:rkm360
ID: 39165499
Thank you very much!! This worked perfectly. I knew there was something I was missing and it's been driving me nuts. Thank you so much for your help!

Robert
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

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

914 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

22 Experts available now in Live!

Get 1:1 Help Now