SQL UPDATE, settting TIME to NULL

  • Thread starter Thread starter John Cosmas
  • Start date Start date
J

John Cosmas

I have a table containing a field in which I need to set the time to a NULL,
or rather to blank it out. How would I structure my SQL statement using the
DOCMD.RUNSQL to accomplish this?

Thanks
John
 
are you talking about a datetime field?

update mytable set thisdate = cdate(cint(thisdate-.5))

hope that helps

-Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Update Query 3
Insert Nulls 2
SQL syntax for Update query 2
SQL "IF" Question 5
Return values 1
Not Nulls in an Access Database field 3
Update Blank Fields Only 14
VBA SQL Where - "<>'False'" vs. "Is Not Null" 6

Back
Top