Crystal reports

maha_lotfi Messages postés 19 Date d'inscription mardi 18 mars 2014 Statut Membre Dernière intervention 12 juin 2014 - 4 mai 2014 à 23:11
maha_lotfi Messages postés 19 Date d'inscription mardi 18 mars 2014 Statut Membre Dernière intervention 12 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

2 réponses

NHenry Messages postés 15113 Date d'inscription vendredi 14 mars 2003 Statut Modérateur Dernière intervention 22 avril 2024 159
4 mai 2014 à 23:29
Ce n'est pas du C, mais du VB, attention à la catégorie !!!
Je déplace le sujet.
0
maha_lotfi Messages postés 19 Date d'inscription mardi 18 mars 2014 Statut Membre Dernière intervention 12 juin 2014
4 mai 2014 à 23:33
ahh DSL merci
0
Rejoignez-nous