Beruflich Dokumente
Kultur Dokumente
Temporally Permanently
Ex-) Game High Score
If data is a variable, we can use Variable
Data Record sets
Method to storage data in memory.
Ex-)
• Table Name-STDATA.mdb • Save As-2000 Format, Because vb6 Developed by Microsoft In 2001.
55
• Database Name-STUDENT.mdb
• File Path-
1) To Connect Database with VB we add Microsoft DAO 3.6 (DLL File) 56
2) Declaring Variables
Database and Record set always changing. (we edit, save, delete…). So these are variables.
We use a specific place to storage database in memory.
RAM
• VB Interface
****NOTE-
Regno textbox(txtr) tab index
shouldn’t equal to zero
****NOTE-
But you cannot write code like this for save or edit.
60
2.Using codes
Ex-1) Ex-2)
A Loop
61
Ex-3) Set database to vb and
write code like this
• Only 3 records display
or
****NOTE-
You cannot take different type of field
as key field .
Ex-3) 63
Then connected with civil records only and other records neglected.
69
Declaring variables for STSUB table.
Declaring variables for STINFO table.
Declaring variables for STMARKS table.
EX-2) Create 3 databases. STMARKS table records should be empty.
70
VB Interface
a Key Field 71
WHERE clause.
72
Three Key Fields
VB 6.0
1.VB Basic (1st Semester) 2.Data Storage (2nd Semester)
I. Introduction I. Introduction
II. Standard Names II. Database
III. Simple Codes III. What is .EXE?
IV. Print Method IV. What is DLL?
V. What is ADO & ODA?
V. Numerical Calculations
VI. What is OLE?
VI. Variable Method
VII. Lesson 1
VII. Conditional Statements
VIII. Lesson 2
VIII. Message Boxes
IX. Lesson 3
IX. Optional Buttons X. Lesson 4
X. Loops XI. Lesson 5
XI. Functions XII. Data grid
XIII. Lesson 6