Datum automatisch ändern
Gunter Avenius
Gesendet: 09.07.14 11:29
Betreff: RE: Datum automatisch ändern



Regular

Beiträge: 66
2525
Ort: Röthenbach a.d.Peg.
Hallo,

wie Karl schrieb, das Datum richtig formatieren.

Dim strDatum As String
Dim strSQL As String

'....
Datumneu = NeuesDatum_ab

strDatum = Format(Datumneu, "\#yyyy\-mm\-dd\#")

strSQL = "UPDATE t_Fixkosten SET [bis] = (" & strDatum & ") WHERE [ID_Fixkosten] = (" & ID_togo & ")"
'....
-----
Gruß
Gunter
--

Access FAQ: http://www.donkarl.com

http://www.avenius.de - http://www.AccessRibbon.de
http://www.ribboncreator.de - http://www.ribboncreator2010.de
http://www.ribboncreator2016.de - http://www.ribboncreator2019.de
Top of the page Bottom of the page