on-internet
← Community

How to display data in textbox using MS Access database

Stack Overflow ·

I'm trying to display user data from a database into a textbox so that the user can edit/update that data later. I'm getting an error: no value has been set for at least one of the required parameters. I did not write the SELECT * FROM, because I'm not displaying data like AdminRights. Can you please help me fix the error? This is my code: private void refresh_Click(object sender, RoutedEventArgs e) { if (!isPostBack) { DataTable dt = new DataTable(); con.Open(); OleDbDataReader dr = null; OleDbCommand cmd = new OleDbCommand("SELECT [Name], [LastName], [UserName], [Password], [Address], [Email

Comments

Sign in or sign up to comment and upvote.

No comments yet.