Hallo zusammen,
Die DSum Abfrage funktioniert wunderbard mit SO_LINE im text format :
QTY_CUM: DSum("QTY";"tab_Zgl_ots_prep_2";"SO_SOLINE<= '" & [SO_SOLINE] & "' and item1 = '" & [ITEM1] & "'")
Nun will ich aber the SO_LINE durch GIDATE ersetzten - GIDate ist aber ein Datums Format.
Kann mir jemand helfen wie dies ändern muss.
Danke Cédric
Hallo,
versuche es mal so:
QTY_CUM: DSum("QTY";"tab_Zgl_ots_prep_2";"CLng(GIDATE)<= '" & CLng(GIDATE) & "' and item1 = '" & [ITEM1] & "'")
Das Datum ist sonst nichts wie eine Zahl, wenn man daher beides Seiten in eine Zahl umwandelt hat man keine Formatprobleme.
Hallo,
wobei die Hochkommata aber zu entfernen sind:
...CLng(GIDATE)<= " & CLng(GIDATE) & " and item1 = '" & [ITEM1] & "'")
Hallo,
Zitatwobei die Hochkommata aber zu entfernen sind:
Genau, hatte ich übersehen, danke.
Super. Vielen Dank.
Hallo nochmals - ich probiere das ganz noch mit dem Auto-Wert, aber bekomme einen error:
QTY_CUM: DSum("QTY";"tab_Zgl_ots_prep_2";"ID<= '" & [ID] & "' and item1 = '" & [ITEM1] & "'")
Weis jemand wie ich dies anpassen muss.
Vielen Dank
Cédric
Hi,
ist id eine Zahl oder Text?
Wenn Zahl => ohne Hochkomma: ";"ID<= " & [ID] & "
Harald
Hallo Harald,
Zitatich probiere das ganz noch mit dem Auto-Wert
Sollte eine Zahl sein ;)
Also
ZitatDA Zahl => ohne Hochkomma: ";"ID<= " & [ID] & "
gruss ekkehard