mkrausnick
Programmer
This is probably an easy one but I'm stumped. I'm learning SSRS. I created a report based on a view using VS 2008 report designer. It previewed OK in the report viewer. I wanted to add a date range parameter. I changed the query to include the parameters in a where clause:
Both parameters have Accept Null Values unchecked and default value Null checked in the Report Parameters window.
I then created a simple VB form with two DateTimePicker fields and a "Go" button, which has this code:
Debugging the form gets a "ConstraintException was unhandled" error that says "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.".
So clearly the FILL() is not getting the values from the DateTimePicker fields.
What did I miss?
Thanks for your help.
Mike Krausnick
Dublin, California
Code:
SELECT lastname, firstname, street1, street2, city, state, zip, DOB, EnrollStart, EnrollEnd, HomeClinic, memberid, tagname, provid, ProvName FROM dbo.v_AceMember where EnrollEnd between @BegDate and @EndDate
I then created a simple VB form with two DateTimePicker fields and a "Go" button, which has this code:
Code:
Private Sub btn_go_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_go.Click
Me.v_AceMemberTableAdapter.Fill(Me.OneEApp_AdminDataSet.v_AceMember, Me.dp_begdate.Value, Me.dp_enddate.Value)
Me.ReportViewer1.RefreshReport()
End Sub
So clearly the FILL() is not getting the values from the DateTimePicker fields.
What did I miss?
Thanks for your help.
Mike Krausnick
Dublin, California