ok. what type of database are you using? cos getdate() is a nice Access and SQL Server thing, so that should work. Also, I noticed that you use single quotes around the hard coded date - surely if you're accessing a field of type datetime, then you'd need to surround it with #'s?
Or am I so far off the mark that you can't even see me?
)
Another possibility is that getdate() returns a UK date format?
Thanks - You are bang on the mark - I'm so dumb - I should've realised that because it was working with the single quotes then the field couldn't have been a date/time field - so I checked the database and whoever created it set it as a text field. It's working fine now. Thanks again.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.