Sydney Industries records the item number, name, and price of each of its products in a database named Products. The Products database is stored in the Products.accdb file, which is contained in the VB2010\ Chap13\Access Databases folder. The database contains a table named tblProducts. The table contains 10 records, each composed of three fields. The ItemNum and ItemName fields contain text; the Price field contains numbers. Open the Sydney Solution (Sydney Solution.sln) file contained in the VB2010\Chap13\Sydney Solution-DataGridView folder. If necessary, open the designer window. Connect the application to the Products database. Change the database file’s Copy to Output Directory property to “Copy if newer.” Bind the table to a DataGridView control and then make the necessary modify cations to the control. Open the Code Editor window and enter the Try…Catch statement in the Save Data button’s Click event procedure. Include appropriate messages. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here