これがコードです。
Private Sub txtNProdname_Click()
Set Rs = New ADODB.Recordset
With Rs
.ActiveConnection = Conn
.CursorLocation = adUseClient
.CursorType = adOpenStatic
.LockType = adLockPessimistic
.Source = "SELECT proddescription FROM products WHERE prodsupplier=" & "'" & txtNsupplier.Text & "' AND prodname=" & "'" & txtNProdname.Text & "'"
.Open
txtNdescription.Text = Rs("proddescription")
End With
End Sub
エラー:
Either BOF or EOF is True, or the current record has been deleted.Requested operation requires a current record.
カウは私を助けますか?それがなくてAND
も動作するようですが、置くとエラーが発生します。