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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how to pass a memory variable to a report



 
 
Thread Tools Display Modes
  #1  
Old May 9th, 2007, 02:54 AM posted to microsoft.public.access.reports
GrantD
external usenet poster
 
Posts: 9
Default how to pass a memory variable to a report

I have a program that calculates sums of samples taken in a period, how do I
transfer the start date and end date which are entered by the user to the
report?
  #2  
Old May 9th, 2007, 03:05 AM posted to microsoft.public.access.reports
Larry Linson
external usenet poster
 
Posts: 3,112
Default how to pass a memory variable to a report

"GrantD" wrote

I have a program that calculates sums of
samples taken in a period, how do I
transfer the start date and end date which
are entered by the user to the report?


Assuming they are entered into Text Boxes, or chosen from Combo Boxes on a
Form, leave the Form open and access them using the Forms collection, Form's
name, and name of the Control. Using Public Variables in a Standard Module
is not especially recommended, but works in most environments.

A very useful enhancement to Access 2002/2003 was the addition of the
OpenArgs argument to the DoCmd.OpenReport... pass them as text strings, and
either print them as is, or convert them back to numbers. You can read the
OpenArgs argument in the Open event of the Report, and, though I've never
had occasion to do so, I believe also in any event that occurs after that.

Larry Linson
Microsoft Access MVP


 




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 02:08 PM.


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