Hi... i will explain here
i have built an app in vb.net to submit data to mysql database.
what i had done is use couple combo boxes to use value for a dynamic query from mysql database and output the result in crystal report viewer.
i have successfully achieved in getting the result of ONE value in One combo box in relation with ONE value in another Combobox.
What i want to do is... get result of ALL values in one combobox in relation to ALL values in one combobox (which should have been easier).. i need to know how to add wildcard or ALL choices to mysql query.
attached are the code and the picture.(ignore date range in the picture)
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Try Dim dset As New DataSet Dim query As String Dim adapter As New MySqlDataAdapter query = "select * from outstanding where vehicleno = '" & cbxvehicle.Text & "' and place = '" & cbxplace.Text & "'" cmd = New MySqlCommand(query, dbcon) adapter.SelectCommand = cmd adapter.Fill(dset) dset.WriteXml("d:\dataset.xml", XmlWriteMode.WriteSchema) Catch ex As Exception End Try Dim creport As New ReportDocument creport.Load("File Output Path:\crystalreport1.rpt") CrystalReportViewer1.ReportSource = creport End Sub