SlideShare uma empresa Scribd logo
1 de 45
• Basics of Visual Basic 6 Programming
• Design and develop Information Systems with the help of Visual
Basic as front-end and MS Access as backend.
Visual Basic 6
What is Visual Basic?
 It is an ―Event Driven Programming Language‖
 The "Visual" part refers to the method used to create the graphical user interface (GUI).
Rather than writing numerous lines of code to describe the appearance and location of
interface elements, you simply add prebuilt objects into place on screen. If you've ever
used a drawing program such as Paint, you already have most of the skills necessary to
create an effective user interface.
 The "Basic" part refers to the BASIC (Beginners All-Purpose Symbolic Instruction Code)
Visual Basic has evolved from the original BASIC language and now contains several
hundred statements, functions, and keywords, many of which relate directly to the
Windows GUI. Beginners can create useful applications by learning just a few of the
keywords, yet the power of the language allows professionals to accomplish anything
that can be accomplished using any other Windows programming language
Why Visual Basic??
 Data access features allow you to create databases, front-end applications, and scalable
server-side components for most popular database formats, including Microsoft SQL
Server and other enterprise-level databases.
 ActiveX™ technologies allow you to use the functionality provided by other
applications, such as Microsoft Word word processor, Microsoft Excel spreadsheet, and
other Windows applications. You can even automate applications and objects created
using the Professional or Enterprise editions of Visual Basic.
 Internet capabilities make it easy to provide access to documents and applications across
the Internet or intranet from within your application, or to create Internet server
applications.
 Your finished application is a true .exe file that uses a Visual Basic Virtual Machine that
you can freely distribute.
Interpreting and Compiling
 The traditional application development process :
 writing
 compiling
 testing code
 Visual Basic uses an interactive approach to development, blurring the distinction
between the three steps.
 Visual Basic interprets your code as you enter it, catching and highlighting most syntax
or spelling errors on the fly. It's almost like having an expert watching over your
shoulder as you enter your code.
 In addition to catching errors on the fly, Visual Basic also partially compiles the code as it
is entered. When you are ready to run and test your application, there is only a brief
delay to finish compiling.
 Compilation also possible to generate faster applications
Key Concepts
 windows, events and messages.
 Think of a window as simply a rectangular region with its own boundaries.
 Explorer window
 document window within your word processing program,
 dialog box ,Icons, text boxes, option buttons and menu bars are all windows
OS manages all of these many windows by assigning each one a unique id number
(window handle or hWnd). The system continually monitors each of these windows for
signs of activity or events. Events can occur through user actions such as a mouse click or
a key press, through programmatic control, or even as a result of another window's
actions.
 Each time an event occurs, it causes a message to be sent to the operating system. The
system processes the message and broadcasts it to the other windows. Each window can
then take the appropriate action based on its own instructions for dealing with that
particular message (for example, repainting itself when it has been uncovered by another
window).
 Visual Basic insulates you from having to deal with all of the low-level message
handling.
Event Driven Programming
 In traditional or "procedural" applications, the application itself controls which portions
of code execute and in what sequence. Execution starts with the first line of code and
follows a predefined path through the application, calling procedures as needed.
 In an event-driven application, the code doesn't follow a predetermined path — it
executes different code sections in response to events. Events can be triggered by the
user's actions, by messages from the system or other applications, or even from the
application itself. The sequence of these events determines the sequence in which the
code executes, thus the path through the application's code differs each time the program
runs.
 Your code can also trigger events during execution. For example, programmatically
changing the text in a text box cause the text box's Change event to occur. This would
cause the code (if any) contained in the Change event to execute. If you assumed that this
event would only be triggered by user interaction, you might see unexpected results. It is
for this reason that it is important to understand the event-driven model and keep it in
mind when designing your application.
DEMO
Visual Basic Environment
Menu Bar
Toolbar
Form
Toolbox
Form Designer
Project
Explorer
Properties
Window
Form Layout
Window
Controls
Label
Text Box
Command Button
Check Box
Option Button
Frame
Combo
Box
List
Box
Control Properties
The most common and important
object properties are :-
 Name
 Caption
 Left
 Top
 Height
 Width
 Enabled
 Visible
Forms
Design Grid
Control BoxCaption
Icon
Labels
Frame
Text Boxes
Minimize
Maximize
Close
The Visual Basic Editor
DEMO
D A T A T Y P E S A N D V A R I A B L E S
W R I T I N G S T A T E M E N T S
M A T H O P E R A T I O N S
C O N T R O L S T A T E M E N T S
F U N C T I O N S
Language Basics
Data Types
 A Data Type is a set of values ,together with a set of
operations on those values having certain properties.
 Built in Type
 User Defined Types
Built in Type
Type Stores Memory(byte) Range
Integer Whole Number 2 -32,768 to +32,767
Long Whole Number 4 +/- 2 billions
Single Decimal 4 +/- 1E45 to 3E-38
Double Decimal 8 +/- 5E324 to 1.8E308
Currency 8 +/- 9E14
String Text 1/char <= 65400 char
Byte Whole Number 1 0-255
Boolean Logical 2 True/False
Date Date & Time 8 1/1/100 to 12/31/9999
Object Instance of Classes 4 N/A
Variant Any of above 16 + 1/char N/A
Variables
 Variables are used to store information in
Computer‘s memory while programs are running.
Three Components that define a variable:
 The Variable‘s Name
 The Type of information being stored
 The actual information itself
Naming Variable
 Rules:
 The name must be start with a letter not number or other character.
 The remainder of name can contain numbers, letters and/or
underscore character. Space ,Punctuation are not allowed.
 Name should be unique within variable scope.
 The name can be no longer than 255 character.
 No reserve words.
Syntax:
Dim Var_name As Datatype
Example:
Dim X As Integer
Dim S_Name As String
Dim Sname As String * 25
Constants
 Constants are values which remains unchanged.
Ex.
Const MeterToFeet = 3.3
Public const ProgTitle = ―My Application Name‖
Public const ProgVersion = ―3.1‖
User Defined Types
 In addition to Built in Types we can also create User
Defined Data Types as follows :-
 Ex.
Private Type Point
x As Integer
y As Integer
End Type
USES:
Private Sub Command1_Click()
Dim MyPoint As Point
MyPoint.x = 3
MyPoint.y = 5
End Sub
Writing Statements
Statement Type Example
Assign a value to a variable sName= ―Ankit‖
Call a Predefined Function MsgBox (―Good Morning‖)
Call your own function A=fun(―hello‖)
Assign Object Property Command1.visible = True
Make decisions If height > 1000 then MoveOn
Using Assignment Statements
 Assignments statements are used to assign values to
a variable.
Assignment Statements Type of Expression
S1 = 25 Numeric Literal
Str1 = ―John‖ String literal
AvgScore = TotScore / n Mathematical Expression
Sname = ―Mrs. ― & ― Tina‖ String Expression
Cname = Ucases$(― Chris‖) Return value of function
Math Operations
Operation Operator Uses
Addition + Res=num1+ num2
Subtraction - Res=num1-num2
Multiplication * Res=num1*num2
Division / Res=num1/num2
Integer division  Res=num1 num2
Modulus mod Res=num1 mod num2
Exponent ^ Res=num1+^num2
Strings
 Strings can be defined as array of characters.
 Strings Functions
 Ucase and Lcase
 InStr and InStrRev
 Left and Right
 Mid
 Ltrim, Rtrim and Trim
 Len
 Chr and Asc
 Str ,CStr and Val
 StrReverse
Examples
1. string1 = ―himansu‖ & ― shekhar‖
output : himansu shekhar
2. Ucase(―Hello‖)
output: HELLO
3. Lcase(―HeLLo‖)
Output: hello
4. Pos = InStr(―hi‖, ―sahoo himansu‖) //return 6
5. Pos = InStrRev(―a‖, ―Nauman‖) //return 5
6. Left(―Hello‖, 3) //Hel
7. Right(―Hello‖,2) //lo
8. Ltrim(― Hello‖) //Hello
9. Trim(― Hello ―) //Hello
10. Len(―Himansu‖) //return 7
11. Chr(65) , Asc(‗A‘) //return A, 65
12. Str(num), Val(string1)
13. StrReverse(―Hello‖) //olleH
Decision Making
 Using If Statements:
Syntax:
If <condition> Then command
Example:
If cSal > cMaxSale Then msgbox(―Greater‖)
Syntax:
If condition Then
………
Else
………
End If
Example:
If Deposit > 0 Then
total = total + Deposit
End If
Decision Making
 Using Multiple If Statements:
Syntax:
If condition Then
………
ElseIf condition Then
………
Else
………..
End If
Example:
If Bsal > 12000 Then
tSal = 2.5 * Bsal
ElseIf Bsal > 10000 Then
tSal = 2* Bsal
Else
tSal = 1.8 * Bsal
End If
Decision Making
 Select Case Examples
Syntax:
avgNum = total / n
Select Case Round(avgNum)
Case Is = 100
grade = ―EX‖
Case 80 To 99
grade = ―A‖
………
End Select
Control Statements
 For Loop
Ex:
sum = 0
For i = 1 To 10
sum = sum + i
Next i
 Do While Loop
Ex:
sum = 0
i = 1
Do
sum = sum + i
i = i + 1
Loop While i <= 10
Control Statements
 Until Loop
Ex:
sum = 0
i = 1
Do Until i > 10
sum = sum + i
i = i + 1
Loop
Functions
 Built in Functions
 User Defined Functions
 Sub Procedures
Built in Functions
 These are the functions that are the provided with
the Visual Basic Package. Some Examples are:
 Abs(num)
 Left(string, n)
 Val(Text1.Text)
 Combo1.AddItem
 Combo1.Clear
 Date
User Defined Functions
 Visual Basic allows to create user defined functions.
 User defined functions that are created by the users for
specific operations.
Ex 1:
Public Function Fun()
msgBox(―Hello‖)
End Function
Ex 2:
Public Function AddNum(num1 As Integer, num2 As Integer) As Integer
AddNum = num1 + num2
End Function
Procedures
 Procedures can be defined in either of two ways.
 Public procedures
 Private procedure
 These two keywords ( Public and Private )
determines which other programs or procedures
have access to your procedures.
 Procedures are by default Private.
Procedure
 Examples:
Sub CalRect(nWidth As Integer, nHeight As Integer, nArea As Integer, nPerimeter As
Integer)
If nWidth <= 0 Or nHeight <= 0 Then
Exit Sub
End If
nArea = nWidth * nHeight
nPerimeter = 2 * ( nWidth + nHeight )
End Sub
Visual Basic forms and controls are objects which expose their own properties, methods and
events. Properties can be thought of as an object's attributes, methods as its actions, and
events as its responses.
The common events related to several controls are as follows:-
 Change – The user modifies the text in a text box or combo box.
 Click- The user clicks an object with the primary mouse button( usually the left button).
 Dblclick- The user double-clicks an object with the primary mouse button.
 DragDrop- The user drags a control to another location.
 DragOver- An object is dragged over a control.
 GotFocus – An object receives a focus.
 KeyDown- A key is pressed while an object has the focus.
 KeyPress- A key is pressed and released while an object has the focus.
 KeyUp- A key is released while an object has the focus.
 MouseDown- A mouse button is pressed while the mouse pointer is over an object.
 MouseMove- A mouse cursor is moved over an object.
 MouseUp- A mouse button is released while the mouse pointer is over an object.
Events
DEMO
T H I S P A R T E X P L A I N S W H A T I S A D A T A B A S E
A N D H O W C A N I T B E C O N N E C T E D T O O U R V B
A P P L I C A T I O N .
Database connectivity
Database
 A database is a structured collection of meaningful information stored over
a period of time in machine-readable form for subsequent retrieval.
 Tables(Tuples or relations) are used to represent collections of objects or
events in the real world.
 A row in a table represents a record consisting of values relative to an entity
by its attribute field.
 A column ,also known as field represents an attribute of the entity.
 A primary key is defined as a field or a group of fields which uniquely
defines a single row or record in a table.
Ways to connect
 DAO(Data Access Objects)
 RDO(Remote Data Objects)
 ADODC(ActiveX Data Objects Data Control)
ADODC
 The most recent method of data access that
Microsoft has introduced.
 As compared to RDO and DAO ,ADODC provides
several options to access data.
 To start using ADODC ,we have to add its control
using the components options in the project menu.
How to connect
 Create a database using MS Access.
 Create a ADODC control in your form.
 In the connection string property of the ADODC control
,select the use connection string option and click on build
button.
 In the provider list select the Microsoft Jet OLE DB provider.
 In the connection tab specify the path of the existing database.
 In the record source tab ,in the command type list select
adCmdTable.
 Select the table name from the list of tables now available.
 Press OK.
Preview
Basic Database commands
 Adodc1.recordset.BOF
 Adodc1.recordset.EOF
 Adodc1.recordset.MoveFirst
 Adodc1.recordset.MoveLast
 Adodc1.recordset.MoveNext
 Adodc1.recordset.MovePrevious
 Adodc1.recordset.Update
Thank You
Presented by :-
Himansu Shekhar Sahoo
Manish Sethi
Narender Singh Thakur
Pratik Barasia

Mais conteúdo relacionado

Mais procurados

Introduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsIntroduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsSanay Kumar
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0sanket1996
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introductionbloodyedge03
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netajmal_fuuast
 
Visual Basic Programming
Visual Basic ProgrammingVisual Basic Programming
Visual Basic ProgrammingOsama Yaseen
 
Computer homework
Computer homeworkComputer homework
Computer homeworkadarsh-kaul
 
Visual basic 6 black book
Visual basic 6 black bookVisual basic 6 black book
Visual basic 6 black bookAjay Goyal
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBADCPS
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computersimran153
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basicmanish maurya
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 IntroductionTennyson
 
Visual basic
Visual basicVisual basic
Visual basicDharmik
 

Mais procurados (19)

Introduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 FundamentalsIntroduction to Visual Basic 6.0 Fundamentals
Introduction to Visual Basic 6.0 Fundamentals
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
 
Best practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.netBest practices for upgrading vb 6.0 projects to vb.net
Best practices for upgrading vb 6.0 projects to vb.net
 
Visual Basic Programming
Visual Basic ProgrammingVisual Basic Programming
Visual Basic Programming
 
Computer homework
Computer homeworkComputer homework
Computer homework
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Visual basic 6 black book
Visual basic 6 black bookVisual basic 6 black book
Visual basic 6 black book
 
Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6
 
Visual basic
Visual basicVisual basic
Visual basic
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBA
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Visual programming
Visual programmingVisual programming
Visual programming
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
Visusual basic
Visusual basicVisusual basic
Visusual basic
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basic
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
 
Vb6.0 intro
Vb6.0 introVb6.0 intro
Vb6.0 intro
 
Visual basic
Visual basicVisual basic
Visual basic
 

Destaque

USA tour presentation
USA tour presentationUSA tour presentation
USA tour presentationkarynsiegmann
 
03 using the internet (re-uploaded)
03 using the internet (re-uploaded)03 using the internet (re-uploaded)
03 using the internet (re-uploaded)bluejayjunior
 
03 using the internet b (re-upload)
03 using the internet b (re-upload)03 using the internet b (re-upload)
03 using the internet b (re-upload)bluejayjunior
 
华语3分钟演讲
华语3分钟演讲华语3分钟演讲
华语3分钟演讲leemouyen98
 
02 internet history and growth (re-upload)
02 internet history and growth (re-upload)02 internet history and growth (re-upload)
02 internet history and growth (re-upload)bluejayjunior
 

Destaque (7)

USA tour presentation
USA tour presentationUSA tour presentation
USA tour presentation
 
03 using the internet (re-uploaded)
03 using the internet (re-uploaded)03 using the internet (re-uploaded)
03 using the internet (re-uploaded)
 
03 using the internet b (re-upload)
03 using the internet b (re-upload)03 using the internet b (re-upload)
03 using the internet b (re-upload)
 
华语3分钟演讲
华语3分钟演讲华语3分钟演讲
华语3分钟演讲
 
internet security 2
internet security 2internet security 2
internet security 2
 
02 internet history and growth (re-upload)
02 internet history and growth (re-upload)02 internet history and growth (re-upload)
02 internet history and growth (re-upload)
 
Introhtml 2
Introhtml 2Introhtml 2
Introhtml 2
 

Semelhante a 01 Database Management (re-uploaded)

Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxAnasYunusa
 
Plug-in Architectures
Plug-in ArchitecturesPlug-in Architectures
Plug-in Architectureselliando dias
 
Compiler design Introduction
Compiler design IntroductionCompiler design Introduction
Compiler design IntroductionAman Sharma
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0DivyaR219113
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checkerYesu Raj
 
Bt0082 visual basic
Bt0082 visual basicBt0082 visual basic
Bt0082 visual basicTechglyphs
 
Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...
Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...
Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...Codemotion
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answersmkengkilili2011
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUjwala Junghare
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010Abram John Limpin
 
2 Win7 For Devs Ux Touch Sensors
2 Win7 For Devs Ux Touch Sensors2 Win7 For Devs Ux Touch Sensors
2 Win7 For Devs Ux Touch Sensorsllangit
 

Semelhante a 01 Database Management (re-uploaded) (20)

Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
ArduinoWorkshop2.pdf
ArduinoWorkshop2.pdfArduinoWorkshop2.pdf
ArduinoWorkshop2.pdf
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Ms vb
Ms vbMs vb
Ms vb
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Introduction to Visual Basic
Introduction to Visual Basic Introduction to Visual Basic
Introduction to Visual Basic
 
Plug-in Architectures
Plug-in ArchitecturesPlug-in Architectures
Plug-in Architectures
 
Compiler design Introduction
Compiler design IntroductionCompiler design Introduction
Compiler design Introduction
 
Intro To C++ - Class 14 - Midterm Review
Intro To C++ - Class 14 - Midterm ReviewIntro To C++ - Class 14 - Midterm Review
Intro To C++ - Class 14 - Midterm Review
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2Daniel Egan Msdn Tech Days Oc Day2
Daniel Egan Msdn Tech Days Oc Day2
 
Automatic answer checker
Automatic answer checkerAutomatic answer checker
Automatic answer checker
 
Bt0082 visual basic
Bt0082 visual basicBt0082 visual basic
Bt0082 visual basic
 
Ashlesh baichwal
Ashlesh baichwalAshlesh baichwal
Ashlesh baichwal
 
Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...
Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...
Erik Wendel - Beyond JavaScript Frameworks: Writing Reliable Web Apps With El...
 
Chapter 5( programming) answer
Chapter 5( programming) answerChapter 5( programming) answer
Chapter 5( programming) answer
 
Unit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdfUnit -II Introduction to visual programming.pdf
Unit -II Introduction to visual programming.pdf
 
A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010A Lap Around Visual Studio 2010
A Lap Around Visual Studio 2010
 
2 Win7 For Devs Ux Touch Sensors
2 Win7 For Devs Ux Touch Sensors2 Win7 For Devs Ux Touch Sensors
2 Win7 For Devs Ux Touch Sensors
 
C++ basics
C++ basicsC++ basics
C++ basics
 

Mais de bluejayjunior

Com ed 2 prelim exam
Com ed 2 prelim examCom ed 2 prelim exam
Com ed 2 prelim exambluejayjunior
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3bluejayjunior
 
Com ed 4 prelim exam
Com ed 4 prelim examCom ed 4 prelim exam
Com ed 4 prelim exambluejayjunior
 
Chapter1.0 database management system
Chapter1.0 database management systemChapter1.0 database management system
Chapter1.0 database management systembluejayjunior
 
01 intro to internet (re-upload)
01 intro to internet (re-upload)01 intro to internet (re-upload)
01 intro to internet (re-upload)bluejayjunior
 
Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)bluejayjunior
 
Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)bluejayjunior
 
C++ control structure
C++ control structureC++ control structure
C++ control structurebluejayjunior
 
Joji ilagan career center foundation6final
Joji ilagan career center foundation6finalJoji ilagan career center foundation6final
Joji ilagan career center foundation6finalbluejayjunior
 
reference for finals
reference for finalsreference for finals
reference for finalsbluejayjunior
 
Joji ilagan career center foundation8mid
Joji ilagan career center foundation8midJoji ilagan career center foundation8mid
Joji ilagan career center foundation8midbluejayjunior
 
Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2bluejayjunior
 

Mais de bluejayjunior (20)

Com ed 2 prelim exam
Com ed 2 prelim examCom ed 2 prelim exam
Com ed 2 prelim exam
 
Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3Intr to-html-xhtml-1233508169541646-3
Intr to-html-xhtml-1233508169541646-3
 
Com ed 4 prelim exam
Com ed 4 prelim examCom ed 4 prelim exam
Com ed 4 prelim exam
 
Chapter1.0 database management system
Chapter1.0 database management systemChapter1.0 database management system
Chapter1.0 database management system
 
01 intro to internet (re-upload)
01 intro to internet (re-upload)01 intro to internet (re-upload)
01 intro to internet (re-upload)
 
Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)Chapter 02 Computer Languages (re-upload)
Chapter 02 Computer Languages (re-upload)
 
Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)Chapter 01 Planning Computer Program (re-upload)
Chapter 01 Planning Computer Program (re-upload)
 
C++ control structure
C++ control structureC++ control structure
C++ control structure
 
Joji ilagan career center foundation6final
Joji ilagan career center foundation6finalJoji ilagan career center foundation6final
Joji ilagan career center foundation6final
 
reference for finals
reference for finalsreference for finals
reference for finals
 
Internet Secutiry
Internet SecutiryInternet Secutiry
Internet Secutiry
 
Com Ed 8 Finals
Com Ed 8 FinalsCom Ed 8 Finals
Com Ed 8 Finals
 
Joji ilagan career center foundation8mid
Joji ilagan career center foundation8midJoji ilagan career center foundation8mid
Joji ilagan career center foundation8mid
 
00 Com Ed 6 Midterm
00 Com Ed 6 Midterm00 Com Ed 6 Midterm
00 Com Ed 6 Midterm
 
Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2Joji ilagan career center foundation8pre2
Joji ilagan career center foundation8pre2
 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelim
 
Com Ed 6 Prelim
Com Ed 6 PrelimCom Ed 6 Prelim
Com Ed 6 Prelim
 
Com Ed 8 Prelim
Com Ed 8 PrelimCom Ed 8 Prelim
Com Ed 8 Prelim
 
Com ed 5 final
Com ed 5 finalCom ed 5 final
Com ed 5 final
 
Com Ed 7 final
Com Ed 7 finalCom Ed 7 final
Com Ed 7 final
 

Último

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfSanaAli374401
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 

Último (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 

01 Database Management (re-uploaded)

  • 1. • Basics of Visual Basic 6 Programming • Design and develop Information Systems with the help of Visual Basic as front-end and MS Access as backend. Visual Basic 6
  • 2. What is Visual Basic?  It is an ―Event Driven Programming Language‖  The "Visual" part refers to the method used to create the graphical user interface (GUI). Rather than writing numerous lines of code to describe the appearance and location of interface elements, you simply add prebuilt objects into place on screen. If you've ever used a drawing program such as Paint, you already have most of the skills necessary to create an effective user interface.  The "Basic" part refers to the BASIC (Beginners All-Purpose Symbolic Instruction Code) Visual Basic has evolved from the original BASIC language and now contains several hundred statements, functions, and keywords, many of which relate directly to the Windows GUI. Beginners can create useful applications by learning just a few of the keywords, yet the power of the language allows professionals to accomplish anything that can be accomplished using any other Windows programming language
  • 3. Why Visual Basic??  Data access features allow you to create databases, front-end applications, and scalable server-side components for most popular database formats, including Microsoft SQL Server and other enterprise-level databases.  ActiveX™ technologies allow you to use the functionality provided by other applications, such as Microsoft Word word processor, Microsoft Excel spreadsheet, and other Windows applications. You can even automate applications and objects created using the Professional or Enterprise editions of Visual Basic.  Internet capabilities make it easy to provide access to documents and applications across the Internet or intranet from within your application, or to create Internet server applications.  Your finished application is a true .exe file that uses a Visual Basic Virtual Machine that you can freely distribute.
  • 4. Interpreting and Compiling  The traditional application development process :  writing  compiling  testing code  Visual Basic uses an interactive approach to development, blurring the distinction between the three steps.  Visual Basic interprets your code as you enter it, catching and highlighting most syntax or spelling errors on the fly. It's almost like having an expert watching over your shoulder as you enter your code.  In addition to catching errors on the fly, Visual Basic also partially compiles the code as it is entered. When you are ready to run and test your application, there is only a brief delay to finish compiling.  Compilation also possible to generate faster applications
  • 5. Key Concepts  windows, events and messages.  Think of a window as simply a rectangular region with its own boundaries.  Explorer window  document window within your word processing program,  dialog box ,Icons, text boxes, option buttons and menu bars are all windows OS manages all of these many windows by assigning each one a unique id number (window handle or hWnd). The system continually monitors each of these windows for signs of activity or events. Events can occur through user actions such as a mouse click or a key press, through programmatic control, or even as a result of another window's actions.  Each time an event occurs, it causes a message to be sent to the operating system. The system processes the message and broadcasts it to the other windows. Each window can then take the appropriate action based on its own instructions for dealing with that particular message (for example, repainting itself when it has been uncovered by another window).  Visual Basic insulates you from having to deal with all of the low-level message handling.
  • 6. Event Driven Programming  In traditional or "procedural" applications, the application itself controls which portions of code execute and in what sequence. Execution starts with the first line of code and follows a predefined path through the application, calling procedures as needed.  In an event-driven application, the code doesn't follow a predetermined path — it executes different code sections in response to events. Events can be triggered by the user's actions, by messages from the system or other applications, or even from the application itself. The sequence of these events determines the sequence in which the code executes, thus the path through the application's code differs each time the program runs.  Your code can also trigger events during execution. For example, programmatically changing the text in a text box cause the text box's Change event to occur. This would cause the code (if any) contained in the Change event to execute. If you assumed that this event would only be triggered by user interaction, you might see unexpected results. It is for this reason that it is important to understand the event-driven model and keep it in mind when designing your application.
  • 8. Visual Basic Environment Menu Bar Toolbar Form Toolbox Form Designer Project Explorer Properties Window Form Layout Window
  • 9. Controls Label Text Box Command Button Check Box Option Button Frame Combo Box List Box
  • 10. Control Properties The most common and important object properties are :-  Name  Caption  Left  Top  Height  Width  Enabled  Visible
  • 13. DEMO
  • 14. D A T A T Y P E S A N D V A R I A B L E S W R I T I N G S T A T E M E N T S M A T H O P E R A T I O N S C O N T R O L S T A T E M E N T S F U N C T I O N S Language Basics
  • 15. Data Types  A Data Type is a set of values ,together with a set of operations on those values having certain properties.  Built in Type  User Defined Types
  • 16. Built in Type Type Stores Memory(byte) Range Integer Whole Number 2 -32,768 to +32,767 Long Whole Number 4 +/- 2 billions Single Decimal 4 +/- 1E45 to 3E-38 Double Decimal 8 +/- 5E324 to 1.8E308 Currency 8 +/- 9E14 String Text 1/char <= 65400 char Byte Whole Number 1 0-255 Boolean Logical 2 True/False Date Date & Time 8 1/1/100 to 12/31/9999 Object Instance of Classes 4 N/A Variant Any of above 16 + 1/char N/A
  • 17. Variables  Variables are used to store information in Computer‘s memory while programs are running. Three Components that define a variable:  The Variable‘s Name  The Type of information being stored  The actual information itself
  • 18. Naming Variable  Rules:  The name must be start with a letter not number or other character.  The remainder of name can contain numbers, letters and/or underscore character. Space ,Punctuation are not allowed.  Name should be unique within variable scope.  The name can be no longer than 255 character.  No reserve words. Syntax: Dim Var_name As Datatype Example: Dim X As Integer Dim S_Name As String Dim Sname As String * 25
  • 19. Constants  Constants are values which remains unchanged. Ex. Const MeterToFeet = 3.3 Public const ProgTitle = ―My Application Name‖ Public const ProgVersion = ―3.1‖
  • 20. User Defined Types  In addition to Built in Types we can also create User Defined Data Types as follows :-  Ex. Private Type Point x As Integer y As Integer End Type USES: Private Sub Command1_Click() Dim MyPoint As Point MyPoint.x = 3 MyPoint.y = 5 End Sub
  • 21. Writing Statements Statement Type Example Assign a value to a variable sName= ―Ankit‖ Call a Predefined Function MsgBox (―Good Morning‖) Call your own function A=fun(―hello‖) Assign Object Property Command1.visible = True Make decisions If height > 1000 then MoveOn
  • 22. Using Assignment Statements  Assignments statements are used to assign values to a variable. Assignment Statements Type of Expression S1 = 25 Numeric Literal Str1 = ―John‖ String literal AvgScore = TotScore / n Mathematical Expression Sname = ―Mrs. ― & ― Tina‖ String Expression Cname = Ucases$(― Chris‖) Return value of function
  • 23. Math Operations Operation Operator Uses Addition + Res=num1+ num2 Subtraction - Res=num1-num2 Multiplication * Res=num1*num2 Division / Res=num1/num2 Integer division Res=num1 num2 Modulus mod Res=num1 mod num2 Exponent ^ Res=num1+^num2
  • 24. Strings  Strings can be defined as array of characters.  Strings Functions  Ucase and Lcase  InStr and InStrRev  Left and Right  Mid  Ltrim, Rtrim and Trim  Len  Chr and Asc  Str ,CStr and Val  StrReverse
  • 25. Examples 1. string1 = ―himansu‖ & ― shekhar‖ output : himansu shekhar 2. Ucase(―Hello‖) output: HELLO 3. Lcase(―HeLLo‖) Output: hello 4. Pos = InStr(―hi‖, ―sahoo himansu‖) //return 6 5. Pos = InStrRev(―a‖, ―Nauman‖) //return 5 6. Left(―Hello‖, 3) //Hel 7. Right(―Hello‖,2) //lo 8. Ltrim(― Hello‖) //Hello 9. Trim(― Hello ―) //Hello 10. Len(―Himansu‖) //return 7 11. Chr(65) , Asc(‗A‘) //return A, 65 12. Str(num), Val(string1) 13. StrReverse(―Hello‖) //olleH
  • 26. Decision Making  Using If Statements: Syntax: If <condition> Then command Example: If cSal > cMaxSale Then msgbox(―Greater‖) Syntax: If condition Then ……… Else ……… End If Example: If Deposit > 0 Then total = total + Deposit End If
  • 27. Decision Making  Using Multiple If Statements: Syntax: If condition Then ……… ElseIf condition Then ……… Else ……….. End If Example: If Bsal > 12000 Then tSal = 2.5 * Bsal ElseIf Bsal > 10000 Then tSal = 2* Bsal Else tSal = 1.8 * Bsal End If
  • 28. Decision Making  Select Case Examples Syntax: avgNum = total / n Select Case Round(avgNum) Case Is = 100 grade = ―EX‖ Case 80 To 99 grade = ―A‖ ……… End Select
  • 29. Control Statements  For Loop Ex: sum = 0 For i = 1 To 10 sum = sum + i Next i  Do While Loop Ex: sum = 0 i = 1 Do sum = sum + i i = i + 1 Loop While i <= 10
  • 30. Control Statements  Until Loop Ex: sum = 0 i = 1 Do Until i > 10 sum = sum + i i = i + 1 Loop
  • 31. Functions  Built in Functions  User Defined Functions  Sub Procedures
  • 32. Built in Functions  These are the functions that are the provided with the Visual Basic Package. Some Examples are:  Abs(num)  Left(string, n)  Val(Text1.Text)  Combo1.AddItem  Combo1.Clear  Date
  • 33. User Defined Functions  Visual Basic allows to create user defined functions.  User defined functions that are created by the users for specific operations. Ex 1: Public Function Fun() msgBox(―Hello‖) End Function Ex 2: Public Function AddNum(num1 As Integer, num2 As Integer) As Integer AddNum = num1 + num2 End Function
  • 34. Procedures  Procedures can be defined in either of two ways.  Public procedures  Private procedure  These two keywords ( Public and Private ) determines which other programs or procedures have access to your procedures.  Procedures are by default Private.
  • 35. Procedure  Examples: Sub CalRect(nWidth As Integer, nHeight As Integer, nArea As Integer, nPerimeter As Integer) If nWidth <= 0 Or nHeight <= 0 Then Exit Sub End If nArea = nWidth * nHeight nPerimeter = 2 * ( nWidth + nHeight ) End Sub
  • 36. Visual Basic forms and controls are objects which expose their own properties, methods and events. Properties can be thought of as an object's attributes, methods as its actions, and events as its responses. The common events related to several controls are as follows:-  Change – The user modifies the text in a text box or combo box.  Click- The user clicks an object with the primary mouse button( usually the left button).  Dblclick- The user double-clicks an object with the primary mouse button.  DragDrop- The user drags a control to another location.  DragOver- An object is dragged over a control.  GotFocus – An object receives a focus.  KeyDown- A key is pressed while an object has the focus.  KeyPress- A key is pressed and released while an object has the focus.  KeyUp- A key is released while an object has the focus.  MouseDown- A mouse button is pressed while the mouse pointer is over an object.  MouseMove- A mouse cursor is moved over an object.  MouseUp- A mouse button is released while the mouse pointer is over an object. Events
  • 37. DEMO
  • 38. T H I S P A R T E X P L A I N S W H A T I S A D A T A B A S E A N D H O W C A N I T B E C O N N E C T E D T O O U R V B A P P L I C A T I O N . Database connectivity
  • 39. Database  A database is a structured collection of meaningful information stored over a period of time in machine-readable form for subsequent retrieval.  Tables(Tuples or relations) are used to represent collections of objects or events in the real world.  A row in a table represents a record consisting of values relative to an entity by its attribute field.  A column ,also known as field represents an attribute of the entity.  A primary key is defined as a field or a group of fields which uniquely defines a single row or record in a table.
  • 40. Ways to connect  DAO(Data Access Objects)  RDO(Remote Data Objects)  ADODC(ActiveX Data Objects Data Control)
  • 41. ADODC  The most recent method of data access that Microsoft has introduced.  As compared to RDO and DAO ,ADODC provides several options to access data.  To start using ADODC ,we have to add its control using the components options in the project menu.
  • 42. How to connect  Create a database using MS Access.  Create a ADODC control in your form.  In the connection string property of the ADODC control ,select the use connection string option and click on build button.  In the provider list select the Microsoft Jet OLE DB provider.  In the connection tab specify the path of the existing database.  In the record source tab ,in the command type list select adCmdTable.  Select the table name from the list of tables now available.  Press OK.
  • 44. Basic Database commands  Adodc1.recordset.BOF  Adodc1.recordset.EOF  Adodc1.recordset.MoveFirst  Adodc1.recordset.MoveLast  Adodc1.recordset.MoveNext  Adodc1.recordset.MovePrevious  Adodc1.recordset.Update
  • 45. Thank You Presented by :- Himansu Shekhar Sahoo Manish Sethi Narender Singh Thakur Pratik Barasia