set rs5 = objconn.execute("Select Sing from LeaveEntitlement where MonthEntitle = '"& Month(ttodate)& " ' ")
do until rs5.eof
if rs5("Sing") then
s = rs5("Sing")
Loop
In the Database table LeaveEntitlement, MonthEntitle is a Field Nmae(Text Data type) from January...December.Sing is another Field(Number Data type) with values for each Month.But S is returning nothing.
Can help for solving this.
Oded, Thanks a lot for solving my issue.