thanks!
ok, but when the INSERT is success, i need to close the application and open it again to update the table and see the record.
how can i refresh it so that when i insert a record it will show automatically
ok, but when the INSERT is success, i need to close the application and open it again to update the table and see the record.
how can i refresh it so that when i insert a record it will show automatically
How about reading the information from the table using another command before you close the connection? The SQL should be simple
Code:
"SELECT * FROM Users"
How you read the data depends on how you've structured your application and how you want to display the data. The two simple options are using a OleDbDataReader and custom class representing the user or using OleDbDataAdapter and a DataSet. I generally go for the former approach but second is equally valid. Using OleDBDataReader Using OleDbDataAdapter
These links should get you going.
Last edited by nelo; January 5th, 2010 at 10:05 AM.
Reason: Correctness...
Bookmarks