Hey peaople... I have a problem with MS Access database.
I use C#.NET and MS Access 2002-2003 database...
Here is my code
And now, when I start the application I get message „No value given for one or more required parameters“.Code:... using System.Data.OleDb; namespace Потсетник { public partial class Form1 : Form { public OleDbConnection database; DataGridViewButtonColumn editButton; DataGridViewButtonColumn deleteButton; public Form1() { InitializeComponent(); // Povrzhuvanje so databazata... ##################### string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zapis.mdb"; try { database = new OleDbConnection(connectionString); database.Open(); //SQL query to list movies string queryString = "SELECT ID, Name, LastName, Nick, MobileNumber, MobileNumber2, e-Mail, e-Mail2, Type FROM Table1 WHERE Table1.ID"; loadDataGrid(queryString); } catch (Exception ex) { MessageBox.Show(ex.Message); return; } } ...
The mistake should be in the following queryString.
What do I do wrong ?
Thanks...




Reply With Quote