I am trying to record certain incidents in my C# program, such as a user logging in or accessing the database.
I am attempting to use something like
but I get the error that "No value was given for one or more required parameters". The table that I am trying to insert the values into has Autonumber 'ID' followed by the username, firstName, lastName and logDetails fields.
I apologise if this post is in the wrong category.
I am attempting to use something like
Code:
OleDbCommand writeLogs = new OleDbCommand("INSERT INTO [LOG] (username, firstName, lastName, logDetails) VALUES (user, fName, lName, details);", connection);
I apologise if this post is in the wrong category.
Comment