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
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