Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL top udpate date to now when date is Null

Status
Not open for further replies.

nmapeso

Technical User
Aug 26, 2005
28
0
0
US
What the correct syntax on this one? So far its not working at all. I'm trying to update a table (maintblBankruptcy) namefiels (DateESent) to now where DateESent is Null.

Dim SQL As String
SQL = "UPDATE maintblBankruptcy" & "SET maintblBankruptcy.DateESent = Now" & _
"WHERE [maintblBankruptcy.DateESent] is Null"
DoCmd.RunSQL SQL

Thanks for all your help. I'm still learning all this SQL statement.
 
SQL = "UPDATE maintblBankruptcy SET DateESent=Now()" & _
" WHERE DateESent Is Null"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top