Unanswered: Simple Problem - For someone in the know
Right i have Crystal Reports 10 Dev & Visual Studio.Net 2003
I've made a form that has a Datepicker called DateTimePicker1 and a textbox called TextBox1. I have a report called HORSSRZERO.rpt. On the form the date picker and text box are at the top and next to them is a button to display the report. Under them is the CrystalReportViewer thingy.
What i need to happen is you choose a date, enter a supplier (six digit number) and click the button and the report displays with these TWO DIFFERENT parameters (sorry for caps them but i've posted this on a few different forums but they keep giving me the code for a range!). Here is the code i got so far. But when i run it the default parameter window pops up asking for the date.
Here is the code.
If i could i would buy you a beer (or 3). So i'm now guessing if i wanted to pass a 3rd parameter all i would need to do is add
myParameterField = New ParameterField
myDiscreteValue = New ParameterDiscreteValue
between each parameter.
Now all i need to do is work out a bit of VB magic on the date field (maybe you can help)
On the datetimepicker if they select a date i need to pass the date of the last sunday of that month to the report on what is selected. Any Ideas?