Bonjour
J'ai développé un projet vb.net en connection avec base de donnée SQL server 2005.
j'ai une table nommé règlement avec les champs suivants:
code,numpiece,date,montant,mode,datecheance,numcheque,nombanque et ncin.
Dans mon projet j'ai un form qui contient un tabcontrol, ce dernier contient 12 onglets (les 12 mois de l'année) chaque onglet contient datagridview, je veux afficher dans chaque datagridview les dates de chaque mois, j'ai essayé pour le faire, j'ai mis un bouton afin d'afficher les données pour février par exemple mais ça ne marche pas

voici le code du bouton afficher:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
    Private Sub btaffiche_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btaffiche.Click
        Dim strConnexion As String = "Data Source=PC-DE-USER\SQLEXPRESS;Initial Catalog=BDecheance;Integrated Security=True"
        Dim oConnection As New SqlConnection(strConnexion)
        Dim strCommand As New SqlCommand
        oConnection.Open()
        Dim strRequete As String = "SELECT * FROM reglement WHERE datecheance BETWEEN CDate(""01/02/2011"")AND CDate (""28/02/2011"") "
        strCommand.Connection = oConnection
        strCommand.CommandText = strRequete
        strCommand.ExecuteNonQuery()
        DataGridView1.DataSource = strCommand
        strCommand.Connection.Close()
    End Sub
et il affiche l'erreur suivant :
'CDate' is not a recognized built-in function name.
Quelqu'un pourrait m'aider ??

Merci.