cannot update date in table

vojinb

Registered User.
Local time
Today, 16:35
Joined
Jul 25, 2011
Messages
38
Hy,
I have a table having one date field formatted as short date "15.12.2011", and on a form text box formatted as short date format. When I click on text box calendar appears and I choose proper date, but when I want to update date in table via query it returns error.
My query looks like:
CurrentDb.Execute ("UPDATE kategorija SET datum=" & Forms![Glavna Forma]!txtDate.Value)
I don't see anything wrong but it keeps me returning error
 
Try

CurrentDb.Execute ("UPDATE kategorija SET datum=#" & Forms![Glavna Forma]!txtDate.Value & "#")
 
Thanks,
but still receive error:
Run-time error '3075':
Syntax error in date in query expression '#07.12.2011'.
6dNarrWc2rAAAAAElFTkSuQmCC
 

Users who are viewing this thread

Back
Top Bottom