Solved

Enter parameter value when printing

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article helps those who get the 0xc004d307 error when trying to rearm (reset the license) Office 2013 in a Virtual Desktop Infrastructure (VDI) and/or those trying to prep the master image for Microsoft Key Management (KMS) activation. (i.e.- C…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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