Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

GHANA CHRISTIAN UNIVERSITY

COLLEGE
SCHOOL OF SCIENCE AND TECHNOLOGY

BSc INFORMATION TECHNOLOGY


SCIS 2523:
OBJECT ORIENTED PROGRAMMING II
(3-CREDIT)
Week 3: LAB 1:
Connecting Access Database to VB 2019.
6/4/2020 SCIS: 2513 2019/2020 1
Creating MS Access Database

• Refer From your Database lessons

6/4/2020 SCIS: 2513 2 2019/2020


Steps for Connection Access
Database to VB Studio 2019

• Create a New Project


– Click Windows application Form

– Click Next

– Write your New Project Name

6/4/2020 SCIS: 2513 3 2019/2020


Steps for Connection Access
Database to VB Studio 2019
• Connecting VB to a Database
– Look for your data source
• Go to View
• Other Windows
• Clink “Add new data source”
– Click Database, Click Next
– Select Dataset, click next
– Click New Connection (Search for your database)
• Click to open your database
– Click on Test Connection ( Clink Ok, then Ok)
6/4/2020 SCIS: 2513 4 2019/2020
Steps for Connection Access
Database to VB Studio 2019
• Database Configuration
– Click the table check box
– Click the “Finish button”
• Viewing Database on the Form
– Under Register, Click on details and drag to the Form
– Arrange the table
– Click the Form toolbox and Click on “DataGrid View” and
drag to the form
– Go back to the Data Source, Click on DataGrid View and
drag it onto the Form DataGrid View
6/4/2020 SCIS: 2513 5 2019/2020
Steps for Connection Access
Database to VB Studio 2019
• Running the Application
– Click on the start button to see the output
– You can add more records and others

6/4/2020 SCIS: 2513 6 2019/2020


END OF LECTURE

THANK YOU

6/4/2020 SCIS: 2513 2019/2020 7

You might also like