Solved

Enter parameter value when printing

Posted on 2013-05-14
2
390 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Some sers suddenly getting error popup msg 28 86
Add records to a form to a table 11 37
Allow user to edit an outgoing email 2 24
IIF help, YN field 7 21
PaperPort has a feature called the "Send To Bar". It provides a convenient, drag-and-drop interface for using other installed software, such as Microsoft Office. However, this article shows that the latest Office 2016 apps (installed with an Office …
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

813 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

17 Experts available now in Live!

Get 1:1 Help Now