Hey people, I have a problem with connect to MS Access database...
I use C#.NET and MS Access 2002-2003
Here is my code:
...
using System.Data.OleDb;
namespace Потсетник
{
public partial class Form1 : Form
{
public OleDbConnection database;
public Form1()
{
InitializeComponent();
string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zapis.mdb";
try
{
database = new OleDbConnection(connectionString);
database.Open();
string queryString = "SELECT ID, Име, Презиме, Ник, Мобилен, Мобилен2, e-Mail, e-Mail2, Type FROM Table1 WHERE Table1.ID = Table1.ID";
loadDataGrid(queryString);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
return;
}
}
...
And now, when I start the application I get message „No value given for one or more required parameters“.
Where I wrong ?
Thanks...