Question: In this exercise, you use a Microsoft Access database named Courses. The database is stored in the VB2015Chap13Access DatabasesCourses.accdb file. The database contains one table

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.

Step by Step Solution

3.34 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a b c Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Courses Proj... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming with Microsoft Visual Basic 2015 Questions!