fix: 쿼리 문에 금일 날짜 조건 추가

This commit is contained in:
kje97 2025-06-30 17:20:31 +09:00
parent 807e56c508
commit 8eb71fff9d

View File

@ -1906,7 +1906,8 @@ Public Class Main_Form
End If
For i = 0 To tableName.Length - 1
DBCmd = "SELECT COUNT(PV_SN) FROM " & tableName(i) & " WHERE PV_SN = '" & TestData.Test_Serial & "'"
DBCmd = "SELECT COUNT(PV_SN) FROM " & tableName(i) & " WHERE PV_SN = '" & TestData.Test_Serial & "'" &
" AND DATE(TestDate) = CURDATE()"
Dim DupYn As Int16 = DBQueryScalar(DBCmd)
If DupYn > 0 Then