how can I solve this kind of error: "a number, currency amount, boolean, date, time, date-time, or string is expected here"
here is my code:
Dim oDoc As New ReportDocument
oDoc.Load("D:\updated 2-21-cla-12-57\WAIS SYSTEM\WAIS SYSTEM\GUIDANCE-dropRpt.rpt")
Dim myDS As New DataSet
oDoc.SetDataSource(myDS.Tables("drop_student"))
Select Case GUIREP_drop.Search.SelectedItem
Case "Date"
strsql = "{drop_student.date_drop} = '" & GUIREP_drop.search_student.Text & "'"
Case "Section"
strsql = "{drop_student.Section} = '" & GUIREP_drop.searchtype.Text & "'"
Case "Student ID"
strsql = "{drop_student.Dropstud_no} = " & GUIREP_drop.search_student.Text.ToString & ""
End Select
CrystalReportViewer1.SelectionFormula = strsql
CrystalReportViewer1.ReportSource = oDoc
any response is appreciated :)