There is data in that table, and number returned should be 1 but i am receving nothing so I guess the problem is in Dates LIKE '%@" & strDate & "%'.

Please assist.

P.S. In string strDate looks like "14.11.2010" in database in Dates column that data is 14.11.2010. 0:00:00 that's why i am using LIKE. I could format database input to ignore hh:mm:ss but I will use that eventualy.

it is not good to use the like for date fields.
if you want to use like for date fields use the below.

select * from rcptmain where cast(dates as varchar)
like '%'+ cast(year(getdate()) as varchar)+'%'
and cast(dates as varchar) like '%'+ cast(month(getdate()) as varchar)+'%'
and cast(dates as varchar) like '%'+ cast(day(getdate()) as varchar)+'%'

othewise you can use the between stmnt

select * from rcptmain where dates between '2010-01-01 00:00' and '2010-01-30 23:59'

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties. A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex.
A simple solution to parsing a customized CSV fi…

In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…