In this exercise, you use a Microsoft Access database named Courses. The database is stored in the

Question:

In this exercise, you use a Microsoft Access database named Courses. The database is stored in the VB2015\Chap13\Access Databases\Courses.accdb file. The database contains one table named tblCourses. Each record has the following four fields: ID, Title, CreditHours, and Grade. The CreditHours field is numeric; the other fields contain text.

a. Open the Courses Solution (Courses Solution.sln) file contained in the VB2015\Chap13\Courses Solution folder. Connect the application to the Courses database. Drag the table into the group box control, and then dock the DataGridView control in its parent container. (In this case, the parent container is the group box control.) Use the task list to disable Adding, Editing, and Deleting. Change the DataGridView control’s AutoSizeColumnsMode property to Fill. Change its RowHeadersVisible and Enabled properties to False. Also change its SelectionMode property to FullRowSelect.

b. Remove the BindingNavigator control from the form by deleting the BindingNavigator object from the component tray.

c. Open the Code Editor window. Delete the Save Data button’s Click event procedure. Code the btnNext_Click and btnPrevious_Click procedures. Code the btnDisplay_Click procedure to display either all the records or only the records matching a specific grade. Test the application appropriately.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: