[Solved] How to connect c# windows application with online access database [closed]

First of all you have to “Setting up an Access Database for Your Hosting Account” for online availability of “Access Database” as a centralized. If your hosting is with godaddy then visit this Link Here is a sample code of access online “Access Database” string connectionString = @”Provider=Microsoft.Jet.OLEDB.4.0;” + @”Data Source=”Path of you hosting provider … Read more

[Solved] i cant insert data in ms access database through textbox [closed]

maybe you can try this code private void button1_Click(object sender, EventArgs e) { try { cmd = new OleDbCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = “INSERT INTO userinfo (FirstName, LastName, Age, Address, Course)” + “VALUES (@First_Name, @Last_Name, @Age, @Address, @Course)”; cmd.Parameters.AddWithValue(“@First_Name”, textBox1.Text); cmd.Parameters.AddWithValue(“@Last_Name”, textBox2.Text); cmd.Parameters.AddWithValue(“@Age”, textBox3.Text); cmd.Parameters.AddWithValue(“@Address”, textBox5.Text); cmd.Parameters.AddWithValue(“@Course”, textBox5.Text); cmd.Connection = conn; conn.Open(); clear(); cmd.ExecuteNonQuery(); … Read more