David Laplante
Nov 23rd, 1999, 03:08 AM
I have this line of code:
ItemListe.SubItems(1) = IIf(Not IsNull(rstRechercheClient!Client_Telephone1), IIf(Not IsNull(rstRechercheClient!FormatPays_Telephone), Format(rstRechercheClient!Client_Telephone1, rstRechercheClient!FormatPays_Telephone), rstRechercheClient!Client_Telephone1), "")
(A little confusing maybe but hey...)
now my problem is that both fiels from my recordset (rstRechercheClient) are NULL... when I get to this line I get a : INVALID USE OF NULL error...
I thought the NOT ISNULL syntax was supposed to avoid that.... what is my problem here ??
ItemListe.SubItems(1) = IIf(Not IsNull(rstRechercheClient!Client_Telephone1), IIf(Not IsNull(rstRechercheClient!FormatPays_Telephone), Format(rstRechercheClient!Client_Telephone1, rstRechercheClient!FormatPays_Telephone), rstRechercheClient!Client_Telephone1), "")
(A little confusing maybe but hey...)
now my problem is that both fiels from my recordset (rstRechercheClient) are NULL... when I get to this line I get a : INVALID USE OF NULL error...
I thought the NOT ISNULL syntax was supposed to avoid that.... what is my problem here ??