Solved

Forward value to Rapport

Posted on 2004-04-26
6
123 Views
Last Modified: 2010-05-02
I have a query that asks for two dates and then it chooses some fields from a table and opens a rapport.
In this rapport as a header i wanna have those two dates that you put in to the query, how is this possible?

Thanks
Robert
0
Comment
Question by:illion
  • 4
  • 2
6 Comments
 
LVL 9

Expert Comment

by:p_sie
Comment Utility
Is this a VB datareport?
0
 

Author Comment

by:illion
Comment Utility
Ohh im sorry, im working in Microsoft Access, so i guess its a  VB report.
0
 
LVL 9

Expert Comment

by:p_sie
Comment Utility
I am still not sure what kind of report it is, is this an access report or a report that you add in a VB project (NOT VBA)?
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:illion
Comment Utility
Its a report in Microsoft Access, i havent written any code, its all just point and click. Access Report.
0
 
LVL 9

Accepted Solution

by:
p_sie earned 50 total points
Comment Utility
If it is a VB project then

In the header of the report add a field with the caption '%i' (percent + i)

Call somewhere in the code:
dtReport.Title = "Dates " & date1 & " and" & date2
dtReport.Show 1

Where dtReport is the name of the report in code!
0
 
LVL 9

Expert Comment

by:p_sie
Comment Utility
Access I don't know, sorry
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now