Hi sconineuk
I am also new to
VB.Net. Hope following Code will solve your problem.
Dim queryString As String = "Select * from [table] where Date="& datatimePicker.value & "
Dim command As New OledbCommand(queryString, connection)
Dim reader As SqlDataReader = command.ExecuteReader()
' Check Date
if reader.Read()
messagebox.show "Date Already there. Select Other Date"
End While
' Call Close when done reading.
reader.Close()
Here connection is your Existing connection Name.