Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing value to data report

Status
Not open for further replies.

tyedyejenn

Programmer
Jun 14, 2000
35
US
I have a VB6 program that runs a report created using the Data Environment and the data report designer. I have an SQL statment in the DE that says:
Select * from Table Where ('Field' = '09/11/2000') this works fine.
Instead of hardcoding the date I want to substitue a variable "strActivityDate". I tried adding "strActivityDate" as a Parameter but couldn't get it. Am I on the right track?

Any Help is GREATLY Appreciated!!! thank you in advance
Jenn [sig][/sig]
 
Hi those reports can really baffle anyone. If you open the recordset from the connection used by the data environment, you can have much more freedom. After that, refresh the report, and show it modally, and close the recordset afterwards. [sig]<p> Daniel Barreto<br><a href=mailto: Daniel.Barreto@Netc.pt> Daniel.Barreto@Netc.pt</a><br><a href= </a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top