Solved

Enter parameter value when printing

Posted on 2013-05-14
2
410 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
[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 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

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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…

729 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