** BASE DE DONNEE ====> TEXTBOX **

cs_Heny Messages postés 125 Date d'inscription samedi 25 octobre 2003 Statut Membre Dernière intervention 19 avril 2007 - 1 juil. 2004 à 16:48
cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 - 1 juil. 2004 à 17:00
SALUT A TOUS
J’utilise ce code pour faire apparaître le contenu d’une base de donnée dans des TEXTBOX en appuyant sur l’information correspondante dans une DTATGRID

Text1(0).Text = Adodc1.Recordset!Catégorie
Text1(1).Text = Adodc1.Recordset!Référence
Text1(2).Text = Adodc1.Recordset!Désignation
Text1(3).Text = Adodc1.Recordset![Prix de l'unité]
Text1(4).Text = Adodc1.Recordset!Quantité
Text1(5).Text = Adodc1.Recordset![Prix Total]
ComP.Text = Adodc1.Recordset!Payement
Label1(8).Caption = Adodc1.Recordset!Date

(ComP est un COMBOBOX)

Mais le problème est quand il n y a pas d’information le recordset il m’envois une erreur d’exécution ‘94’ « UTILISATION NON AUTORISE DE NULL »
Il y t il une solution a ce problème si oui la quel
Et merci de me répondre

1 réponse

cs_ITALIA Messages postés 2169 Date d'inscription vendredi 20 avril 2001 Statut Membre Dernière intervention 30 juin 2009 9
1 juil. 2004 à 17:00
Text1(0).Text = IIf(IsNull(Adodc1.Recordset!Catégorie), "", Adodc1.Recordset!Catégorie)
.....
....
..
.

It@li@
0
Rejoignez-nous