kktsenthil
11 years agoOccasional Contributor
Need Help on Data retrieval from DB and Find the particular value count
Hi All,
I need a valuable help please
right now i retrieved value from the database and wat to find the field value count
for example
User Name: King
i inserted a record in to the DB and want to find is there any existing value(King) stored in the Table(Duplicate value)
Below is Script in VB
So some one help me
Qry.SQL = "select * from Test_Main.dbo.tbtable"
Qry.Open
Qry.First
While Not Qry.EOF
columnvalue = Qry.FieldByName("ColumnName").Value
if(StrComp(columnvalue,UsertxtInputName,1)) = 0 then
log.message "Input data stored in the database successfully"
log.message columnvalue
end if
Qry.Next
Wend
' Closes the query
Qry.Close