Austin Davis
Austin Davis

Reputation: 3756

Access update statement

Trying to make all the dates from a column null except for 10/15/2012 in access here what I have so far.

Update tbl_ReleaseTracking Set 2nd_Ltr_Sent= null WHERE  2nd_Ltr_Sent <> #10/15/2012#

I get the error missing operator in query expression '2nd_LRT_Sent <> #10/15/2012#.

Upvotes: 0

Views: 289

Answers (2)

Ojen
Ojen

Reputation: 837

This will do what you want:

Update tbl_ReleaseTracking Set [2nd_Ltr_Sent]= null 
WHERE [2nd_Ltr_Sent] <> #10/15/2012#

Upvotes: 1

David M&#252;ller
David M&#252;ller

Reputation: 5351

Even though I'm not familiar with MS Access, I think that columns should not start with a number. Tried enclosing the column name with ``?

Upvotes: 0

Related Questions