A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Passing a Parameter from a Form to a Report



 
 
Thread Tools Display Modes
  #1  
Old July 22nd, 2009, 03:33 PM posted to microsoft.public.access.gettingstarted
SteveH
external usenet poster
 
Posts: 69
Default Passing a Parameter from a Form to a Report

I have an order form with an order id field. I also have an order report
based on the order id. I want to put a print button on the form that, when
clicked, generates the report based on that particular order id. How do I
pass that order id to the report? Any help would be greatly appreciated.
  #2  
Old July 22nd, 2009, 03:46 PM posted to microsoft.public.access.gettingstarted
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Passing a Parameter from a Form to a Report

In criteria of the query that feeds the report use this --
[Forms]![YourFormName]![TextBoxName]

Substitute your actual form and text box names for [YourFormName] and
[TextBoxName].

--
Build a little, test a little.


"SteveH" wrote:

I have an order form with an order id field. I also have an order report
based on the order id. I want to put a print button on the form that, when
clicked, generates the report based on that particular order id. How do I
pass that order id to the report? Any help would be greatly appreciated.

  #3  
Old July 22nd, 2009, 04:00 PM posted to microsoft.public.access.gettingstarted
SteveH
external usenet poster
 
Posts: 69
Default Passing a Parameter from a Form to a Report

That worked perfectly. Thank you!

"KARL DEWEY" wrote:

In criteria of the query that feeds the report use this --
[Forms]![YourFormName]![TextBoxName]

Substitute your actual form and text box names for [YourFormName] and
[TextBoxName].

--
Build a little, test a little.


"SteveH" wrote:

I have an order form with an order id field. I also have an order report
based on the order id. I want to put a print button on the form that, when
clicked, generates the report based on that particular order id. How do I
pass that order id to the report? Any help would be greatly appreciated.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.