title: C# + Access Error: Not a valid File name
body: <p>It seems that there's a problem with my file directory. I learned from 1 post here in Stack Overflow that there is a hidden [enter] or \n in the directory of my file. I don't understand it. Here is my code</p>
  
  <p>My connection string:</p>
  
  <pre><code>    con.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=‪C:\CRDB\crdb.accdb;
  Persist Security Info=False;";
  </code></pre>
  
  <p>and here is what I'm doing:</p>
  
  <pre><code>public void loadTable()
          {
              try
              {
                  con.Open();
                  OleDbCommand com = new OleDbCommand();
                  com.Connection = con;
                  string query = "SELECT * FROM ChequeMasterList";
                  com.CommandText = query;
  
                  OleDbDataAdapter da = new OleDbDataAdapter(com);
                  DataTable dt = new DataTable();
                  da.Fill(dt);
                  dataGridView1.DataSource = dt;
  
                  con.Close();
              }
              catch(Exception ex)
              {
                  MessageBox.Show("Error: " + ex.Message);
              }
          }
  </code></pre>
  
  <p>As you can see it is very simple. I just want to load my database onto my Datagridview, but i keep on getting this error:</p>
  
  <p><a href="https://i.stack.imgur.com/hEZMc.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>I've been doing a lot of C# systems nowadays and this is the first time i ran into this problem. Do you have any ideas?</p>