Koristi filter, moci ces da postavis uslov sa vise polja kada ti bude trebalo.
Code:
With adoRS
.Filter = "UserID='" & IDbroj & "'"
If not (.Eof and .Bof) Then 'Ili .RecordCount > 0
Call PrikaziZapis
end if
.Filter = ""
End With
Ako ti je polje UserID numerik, sto je vise verovatno, onda filter izgleda ovako
Code:
.Filter = "UserID=" & IDbroj