VB6 ADO SQL問題
Set rs = New ADODB.Recordsetstr1 = "select * from YHMM where 客戶名 ='" & Trim(TextBox1.Text) & "'"
str2 = "select * from YHMM where 金額 ='" & Trim(TextBox2.Text) & "'"
rs.Open str1
If rs.EOF = True Then
.....
end if
rs.Open str2
If rs.EOF = True Then
....
end if
紅色字報錯
當rs打開後如何正確的查第二個條件