DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

10
DATABASE SYSTEM VB LINK TO MS-SQL

description

3 Select Microsoft ADO Data Control 6.0 (OLEDB). Then click command button Apply and OK.

Transcript of DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

Page 1: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

DATABASE SYSTEM

VB LINK TO MS-SQL

Page 2: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

2

Visual Programming Chapter 6

Select Project -> Component

Page 3: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

3Select Microsoft ADO Data Control 6.0 (OLEDB). Then click command button Apply and OK.

Page 4: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

4The Adodc control/object will appear at the ToolBox

Page 5: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

5

Select the Adodc. Then draw the object on the form.Change the Property Name to adoPatient.Change Property Caption to Patient Record

Page 6: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

6Select the ConnectionString and Property Pages will appear.

Page 7: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

7

Select Use Connection String and click command button Build.The Data Link Properties will appear. Then select Microsoft OLE DB Provider For SQL Server.

Page 8: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

8Select or enter Server name then Select the Database on the server

Page 9: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

9Select the RecordSource – Patient

Page 10: DATABASE SYSTEM VB LINK TO MS-SQL. 2 Visual ProgrammingChapter 6 Select Project - Component.

10

Select Data Source – adoPatient Then Select Data Field – Patient ID.Repeat the same process for the other fields – IC Number, Address and Tel No.