Solved

Pass a parameter to Data Report

Posted on 2000-04-19
8
186 Views
Last Modified: 2010-05-02
Hi,
   Can someone tell me how to pass a parameter from a procedure to
a Data Report and print it there.

Any help is greatly appreciated.

Thankx

Dilantha
0
Comment
Question by:dil_line
  • 5
  • 3
8 Comments
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2732764
0
 

Author Comment

by:dil_line
ID: 2749222
The link is not helpful for me.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2749765
Do you want to print a variable in a control of a data report? In this case, see that one: http://support.microsoft.com/support/kb/articles/Q240/0/19.ASP?LN=EN-US&SD=gn&FR=0
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:dil_line
ID: 2751205
Adjusted points from 100 to 200
0
 

Author Comment

by:dil_line
ID: 2751206
Yes I want to print a variable in a label in the header section of the report.

The contents in the link looks positive and I will try to follow them.

Do you know how to pass a parameter into the report ?

- I have to pass the year from a procedure. (ex. 1999)
- The report should capture this value and print it once
       in the header section.

Ex:-  Timesheet for 1999


Thanks a lot for your help so far.
0
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 200 total points
ID: 2751235
DR.Sections("Section1").Controls.Item(intCtrl).Caption = "Timesheet for 1999"
0
 

Author Comment

by:dil_line
ID: 2751264
Great thanks. I will try it later and let you know.

Dilantha
0
 

Author Comment

by:dil_line
ID: 2765623
It works fine. Thanks alot.

Dilantha
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

809 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