2番目のFor Each
には、EmailCreateDate = dtEmailCreateDate
のすべてのレコードを選択したいが、レコードは見つからない。誰かがアイデアを持っていますか?Datatable Datetimeで選択
Dim dtEmailCreateDate As DateTime = Date.Now
For Each row In _tblMandantenData.Select("Selected = True AND EmailSentDate IS NULL")
row("EmailCreateDate") = dtEmailCreateDate
DBAccess.UpdateEmailVersandInfos(row)
Next
Dim strQuery = String.Format("Selected = True AND EmailCreateDate = '{0}'", dtEmailCreateDate.ToString())
For Each rowToSent In _tblMandantenData.Select(strQuery)
SentMail(rowToSent)
Next