the way dates are stored (saved) in the database is NOT the same as the we you see it. The PC's regional settings are used to display dates in the correct format. Try and change the regional settings for your PC and you will see what I mean.
ahh, I see but that still doesn't change the fact that i have to use this string to make the right check niceDate = Year(pay) & "-" & Month(pay) & "-" & Day(pay)
its always a problem working with dates in Access or most other databases for that matter.
You can use Format(pay, "yyyy-mm-dd")
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.