Академический Документы
Профессиональный Документы
Культура Документы
ANDHRA PRADESH
Name : Y.Vijaya Bhaskara Reddy
Designation : Senior Lecturer
Branch : Commercial and Computer Practice
Institute : VI semester
Subject : Visual Basics—II
Subject code : CCP-603.
Topic : data base Programming
Duration : 50 minutes
Sub topic : know how to access fields In
recordsets
Teaching Aids : PPTs
CCP603.24C 1
OBJECTIVES
CCP603.24C 2
Structure Of The Period:
Example for Table-type Recordset
CCP603.24C 3
Recap:
CCP603.24C 4
Table-Type Recordset Example:
This example opens a table-type Recordset:
Sub dbOpenTableX()
Dim dbsNorthwind As Database
Dim rstEmployees As Recordset
Set dbsNorthwind = OpenDatabase("Northwind.mdb")
' dbOpenTable is default.
Set rstEmployees =dbsNorthwind.OpenRecordset("Employees")
End Sub
CCP603.24C 5
Dynaset-Type Recordset Example:
This example opens a Dynaset-type Recordset.
Sub dbOpenTableX()
Dim dbsNorthwind As Database
Dim rstEmployees As Recordset
Set dbsNorthwind = OpenDatabase("Northwind.mdb")
Set rstEmployees = dbsNorthwind.OpenRecordset(“Invoices“,
dbOpenDynaset)
End Sub
CCP603.24C 6
Snapshot-Type Recordset Example:
This example opens a Snapshot-type Recordset.
Sub dbOpenTableX()
Dim dbsNorthwind As Database
Dim rstEmployees As Recordset
Set dbsNorthwind = OpenDatabase("Northwind.mdb")
Set rstEmployees = dbsNorthwind.OpenRecordset(“Employees“,
dbOpenSnapshot)
End Sub
CCP603.24C 7
Quiz
CCP603.24C 8
Frequently Asked Questions:
CCP603.24C 9
Summary:
CCP603.24C 10
Assignment
CCP603.24C 11