-1
With rs
.CursorType = adOpenStatic 'I tried all types
.LockType = adLockOptimistic 'I tried all types
.CursorLocation = adUseClient
.Open com
End With
while rs.EOF = False
if val(t1.text) = rs.fields(1) then
msgbox "Reg.no. " & rs.fields(1) & " is Already in database"
'Our Searching work in db is done here, we want to close this while loop by code, so i used below
rs.EOF = True 'here compiler error gives "can't assign to read-only property"
else
rs.movenext
end if
wend
'here want to do " if not val(t1.text) = rs.fields(1) " operation
Pls는 도움이rs.EOF = True 가능합니까? 어떤 조건이라면 vb6.0에서 가능합니까?
고맙습니다 ... –