Datumsformat ändern von SQL auf Access
resiro
Gesendet: 24.02.14 14:51
Betreff: Datumsformat ändern von SQL auf Access


Member

Beiträge: 9

Hallo,

ich habe mein Access BE nach SQL migriert. Jetzt stimmt mein Datumsformat im Access FE nicht mehr.

Habe schon versucht:

Private Sub Detailbereich_Format(Cancel As Integer, FormatCount As Integer)

Dim strDatum As String
Dim strSQL As String

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

strSQL = "SELECT * FROM Tabelle WHERE Tabelle.Feld > " & strDatum

End Sub

Ändert sich nichts - Datumsformat nach wie vor 2000-12-20 00:00:00
Ich hätte aber gern dd.mm.yyyy

Was kann ich tun?

Hinweis: Datum wird nicht separat ausgegeben, sondern in einer Kombination: =" Geboren am " & [Geburtsdatum] & " in " & [Geburtsort]

Reinhard
Top of the page Bottom of the page