maha_lotfi
Messages postés19Date d'inscriptionmardi 18 mars 2014StatutMembreDernière intervention12 juin 2014
-
4 mai 2014 à 23:11
maha_lotfi
Messages postés19Date d'inscriptionmardi 18 mars 2014StatutMembreDernière intervention12 juin 2014
-
4 mai 2014 à 23:33
Bonjour,
S'il vous plais comment je peux faire un état avec condition
voila mon code mais l'erreur que le rapport affiche tous les données
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
ds.Clear()
CrystalReportViewer1.Refresh()
If TextBox1.Text <> "" Then
con.Open()
cmd.Connection = con
cmd.CommandType = CommandType.Text
cmd.CommandText = "Select * from ENTREE_MEDC where ID_ENTREE ='" & TextBox1.Text & "'"
cmd.ExecuteNonQuery()
CrystalReportViewer1.ReportSource = report
CrystalReportViewer1.Show()
con.Close()
Else
MsgBox("Aucun entree selectioné")
End If
End Sub