OVH Cloud OVH Cloud

if notIsnull et If Isnull

3 réponses
Avatar
ASM
Bonjour à tous

les deux champs [NumeroFacture] sont alfa:

If NotIsnull
(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!NumeroFactu
re")) then
etc..... rien ne marche

Mais si je fais l'inverse
If
Isnull(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!Numer
oFacture")) then
etc...
maintenant tout marche avec bien sur les msgbox inversés

Pourquoi ma première version ne marche pas?:-(

Merci encore à tous de votre aide

Neige en novembre, Noël en décembre

3 réponses

Avatar
Pierre CFI
bonjour
c'est Not Isnull(....
pas Notisnull

--
Pierre CFI
MVP Microsoft Access
Mail : http://cerbermail.com/?z0SN8cN53B

Site pour bien commencer
http://users.skynet.be/mpfa/
Site perso
http://access.cfi.free.fr
"ASM" a écrit dans le message de news: bn5kkj$7ok$
Bonjour à tous

les deux champs [NumeroFacture] sont alfa:

If NotIsnull
(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!NumeroFactu
re")) then
etc..... rien ne marche

Mais si je fais l'inverse
If
Isnull(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!Numer
oFacture")) then
etc...
maintenant tout marche avec bien sur les msgbox inversés

Pourquoi ma première version ne marche pas?:-(

Merci encore à tous de votre aide

Neige en novembre, Noël en décembre




Avatar
ASM
Merci encore.
Bonne journée
"ASM" a écrit dans le message de
news:bn5kkj$7ok$
Bonjour à tous

les deux champs [NumeroFacture] sont alfa:

If NotIsnull

(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!NumeroFactu

re")) then
etc..... rien ne marche

Mais si je fais l'inverse
If

Isnull(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!Numer

oFacture")) then
etc...
maintenant tout marche avec bien sur les msgbox inversés

Pourquoi ma première version ne marche pas?:-(

Merci encore à tous de votre aide

Neige en novembre, Noël en décembre




Avatar
NetChris
if NOT ISNULL( ....
et pas notisnull


a écrit dans le message de
news:087a01c398b6$b034dc70$
Ou Isnull(...) = true et Isnull(...) = false

-----Message d'origine-----
Bonjour à tous

les deux champs [NumeroFacture] sont alfa:

If NotIsnull
(dlookup("Numerofacture","Tab_titi","Numerofacture=forms!
NomForm!NumeroFactu

re")) then
etc..... rien ne marche

Mais si je fais l'inverse
If
Isnull(dlookup
("Numerofacture","Tab_titi","Numerofacture=forms!NomForm!

Numer
oFacture")) then
etc...
maintenant tout marche avec bien sur les msgbox inversés

Pourquoi ma première version ne marche pas?:-(

Merci encore à tous de votre aide

Neige en novembre, Noël en décembre


.