Supportnet / Forum / Datenbanken
Formular öffnen mit VB
Frage
Ich möchte ein Formular mit VB öffnen, hierbei sollen zwei Felder auf ihren Inhalt abgefragt werden. Das bedeutet das Feld1 "nicht null" sein soll, aber Feld2 "null" sein soll. Mit einem Feld bekomme ich dieses hin. Aber ich weiß nicht wie ich das zweite Feld einfügen kann.
Beispiel:
DoCmd.OpenForm "formularX", , , "[Feld1]<> Null"
Danke AB
Antwort 1 von Koebi
Grüezi AB
Versuch mal
DoCmd.OpenForm "formularX", , , "[Feld1]<> Null AND IsNull [Feld2]"
Gruss
Köbi
Versuch mal
DoCmd.OpenForm "formularX", , , "[Feld1]<> Null AND IsNull [Feld2]"
Gruss
Köbi
Antwort 2 von AB
Danke für die Hilfe !
Es war der richtige Ansatz, allerdings nicht ganz. Hier die Zeile wie es funktioniert.
DoCmd.OpenForm "FormularX", , , "[Feld1]<> Null And [Feld2] Is Null"
Es war der richtige Ansatz, allerdings nicht ganz. Hier die Zeile wie es funktioniert.
DoCmd.OpenForm "FormularX", , , "[Feld1]<> Null And [Feld2] Is Null"

