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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parameter passing?

Status
Not open for further replies.

PeNT

IS-IT--Management
Dec 2, 2001
8
0
0
AU
hello,
i am having a little trouble trying to use crystal reports 4.6. im trying to pass a user selected date into a report from a vb app. since crystal reports 4.6 does not have parameter passing, how would i go about doing this?
thx for any help
 
Depends on how you want to use the date. You could create a date formula in the report and pass the date value to the formula. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
in the report i have a formula for the date named @printdate ...
in vb, i've tried:
CrystalReport.SelectionFormula = "{printdate} = {Date(2001, 11, 12 )}"
unfortunely it doesnt work... am i doing this properly?
 
If you are passing the selection formula, you don't need a formula field. Use the select expert to get any single date in the report, then use the "Edit Selection Formula" menu option to see the syntax used. Pass CR this exact syntax in your vb command. Ken Hamady, On-site/Phone Crystal Reports Training/Consulting
Quick Reference Guide to using Crystal in VB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top