title: The expression contains invalid date constant
body: <p>I tried this code first before copying it to my main project (I created new project to test the codes first):</p>
  
  <pre><code>Private Sub posBtn_Click(sender As Object, e As EventArgs) Handles posBtn.Click
      On Error GoTo wewe
  
      If posText.Text = "" Then
          Call notFound()
          Exit Sub
  
      Else
  
          Dim cantFind As String = posText.Text
  
          EmployeesRecordBindingSource.Filter = "(Convert(#_of_Employees, 'System.String') LIKE '" &amp; posText.Text &amp; "')" &amp; "OR (last_name LIKE '" &amp; posText.Text &amp; "') OR (first_name LIKE '" &amp; posText.Text &amp; "')" &amp; "OR (mi LIKE '" &amp; posText.Text &amp; "') OR (position LIKE '" &amp; posText.Text &amp; "')"
  
          If EmployeesRecordBindingSource.Count &lt;&gt; 0 Then
              With DataGridView2
                  .DataSource = EmployeesRecordBindingSource
              End With
          Else
  
              MsgBox(cantFind &amp; vbNewLine &amp; "The search item was not found!", MsgBoxStyle.Information, "Hey boss")
  
              EmployeesRecordBindingSource.Filter = Nothing
  
              With DataGridView2
                  .ClearSelection()
                  .DataSource = EmployeesRecordBindingSource
              End With
  
  
          End If
      End If
  
  
  lul:
      Exit Sub
  
  wewe:
  
      MsgBox("Error Number " &amp; Err.Number &amp; vbNewLine &amp; "Error Description " &amp; Err.Description, MsgBoxStyle.Critical, "Reset Error!")
      Resume lul
  
  End Sub 
  </code></pre>
  
  <p>In my sample project, this is working. But when I copied it to my main project and run, I got this error: <code>The expression contains invalid date constant '#_ofE_Employees, 'Sytem.String') LIKE '1')OR</code> and so on... Did I missed something? Btw, it is for searching in datagridview. I have also private sub for reset, notfound.</p>