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

Can I pass a title into a report from vb.net?

Status
Not open for further replies.

jwbaker

Programmer
Jul 30, 2003
4
US
I am creating a report and would like to set a title showing the range of dates. I know I can do this with a formula but it will only show the ranges for which there is actual data.

I am already using a selection formula can I include it in there?

I noticed there was a report.section2.reportobjects... is there a way of accessing a text field from here?

Thanks,

John
 
Are you passing a parameter, or building a customized record selection.

If you're using a parm, then just display that.

If not, you might consider using a parm to simplify this.

-k
 


Here is my selection formula:

selform = "{ClassStats.Date} in DateTime (" & Year(dtpStart.Value) & "," & Month(dtpStart.Value) & "," & DatePart("d", dtpStart.Value) & ", 00, 00, 00) to DateTime (" & Year(dtpEnd.Value) & "," & Month(dtpEnd.Value) & "," & DatePart("d", dtpEnd.Value) & ", 00, 00, 00)"

crReportView.SelectionFormula = selform

This is all that I am passing other than the dataset itself. Do you mean passing a parameter as part of the dataset itself?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top