HEllo Again, WOuld like to thank everyone who have answer some of my problem int access previously. But right now I' again stuck with this syntax on SQL Where(Criteria).
Im trying to update a database maintblBankruptcy DateEsent to Date() when DateESent is Null and Relationship = a textBox[Division] entered by user and DateRecieved = Between a textBoxstartDate[Date1] and a textBoxEndDate[EndDate]
Don't get any error. Some database are updated base on the where conditions and some are not. I guessing my syntax is wrong.
Dim SQL As String
SQL = "UPDATE maintblBankruptcy SET DateESent = Date()" & _
"WHERE DateESent is Null AND [Relationship] = '" & Me![Division] & "' [RecievedDate] Between #" & Me![Date1] & "# and #" & Me![EndDate] & "#"
DoCmd.SetWarnings (False)
DoCmd.RunSQL SQL
Im trying to update a database maintblBankruptcy DateEsent to Date() when DateESent is Null and Relationship = a textBox[Division] entered by user and DateRecieved = Between a textBoxstartDate[Date1] and a textBoxEndDate[EndDate]
Don't get any error. Some database are updated base on the where conditions and some are not. I guessing my syntax is wrong.
Dim SQL As String
SQL = "UPDATE maintblBankruptcy SET DateESent = Date()" & _
"WHERE DateESent is Null AND [Relationship] = '" & Me![Division] & "' [RecievedDate] Between #" & Me![Date1] & "# and #" & Me![EndDate] & "#"
DoCmd.SetWarnings (False)
DoCmd.RunSQL SQL