Académique Documents
Professionnel Documents
Culture Documents
Computer Applications-II
Computer Applications-II
Computer Applications-II
Computer Applications-II
LAB-
Private Sub Command1_Click() )ist1.%ddIte$ Text1.Text Text1.Text = Clear Text1.SetFocus End Sub Private Sub Form_ oad() Text1.Text = Clear End Sub Private Sub #e$t1_%e&Press(%e&Ascii As Inte'er) If &e'%scii = 1! Then )ist1.%ddIte$ Text1.Text Text1.Text = Clear Text1.SetFocus End If End Sub
Computer Applications-II
Computer Applications-II
Computer Applications-II
Computer Applications-II
1;
Computer Applications-II
11
Computer Applications-II
Computer Applications-II
1!
Computer Applications-II
1#
Computer Applications-II
1(
Computer Applications-II
1*
Computer Applications-II
1-
Computer Applications-II
LAB-1
Private Sub Command1_Click() I$a,e1.Aicture = )oadAicture./CGH)U3C:.FIF/5 End Sub Private Sub Command2_Click() Aicture1.Aicture = )oadAicture./CGH)U3C:.FIF/5 End Sub
PIC#-./ 0!1
I2A3/ C!4#.!
19
Computer Applications-II
1=
Computer Applications-II
2;
Computer Applications-II
21
Computer Applications-II
22
Computer Applications-II
2!
Computer Applications-II
2#
Computer Applications-II
Private Sub Command1_Click() For$2.ShoJ For$2.Text1.Text = For$1.Text1.Text For$2.Text2.Text = For$1.Text2.Text For$2.Text!.Text = For$1.Text!.Text For$2.Text1.Enabled = False For$2.Text2.Enabled = False For$2.Text!.Enabled = False End Sub Private Sub Form_ oad() Text1.Text = Clear Text2.Text = Clear Text!.Text = Clear End Sub
Private Sub Command1_Click() +e.:ide For$1.Text1.SetFocus End Sub Private Sub Command2_Click() End End Sub
2(
Computer Applications-II
2*
Computer Applications-II
2-
Computer Applications-II
29
Computer Applications-II
2=
Computer Applications-II
!;
Computer Applications-II
LAB-2
Private Sub Command1_Click() SSTab1.TabCaption.;5 = Text1.Text I / Aersonal Info/ SSTab1.Tab = 1 Text#.SetFocus End Sub Private Sub Command3_Click() SSTab1.Tab isible.;5 = False SSTab1.Tab = 2 Text-.SetFocus End Sub Private Sub Command+_Click() Text=.Text = al.Text-.Text5 D al.Text9.Text5 Text=.Enabled = False End Sub Private Sub Form_ oad() Text1.Text = Clear Text2.Text = Clear Text!.Text = Clear Text#.Text = Clear Text(.Text = Clear Text*.Text = Clear Text-.Text = Clear Text9.Text = Clear Text=.Text = Clear End Sub
!1
Computer Applications-II
!2
Computer Applications-II
Computer Applications-II Eata1.7ecordset.+o2eAre2ious End Sub Private Sub Command:_Click() cri = /na$e= K/ I Text#.Text I /K / Eata1.7ecordset.FindFirst cri If Eata1.7ecordset.3o+atch Then +s,Box /record not found/ End If End Sub Private Sub Command;_Click() Eata1.7ecordset.Edit End Sub Private Sub Form_Activate() Text#.SetFocus End Sub Private Sub Form_ oad() Text#.Text = Clear End Sub
!#
Computer Applications-II
!(
Computer Applications-II
Computer Applications-II displa'rec End Sub Private Sub Command9_Click() e$pLrec.Eelete +s,Box /7ecord Successfull' Eeleted/1 2bInfor$ation End Sub Private Sub Command:_Click() Ei$ r %s %EOEB.7ecordset Set r = 3eJ %EOEB.7ecordset r.Open /select 8 fro$ ict Jhere depart$ent = K/ I Text#.Text I /K /1 e$pLcon1 adOpenE'na$ic1 ad)oc"Opti$istic Set %dodc1.7ecordset = r Call %dodc1.7efresh End Sub Private Sub Form_Activate() clbox displa'rec End Sub Private Sub Form_ oad() Set e$pLcon = 3eJ %EOEB.Connection e$pLcon.ConnectionStrin, = /dsn=e$p/ e$pLcon.Open Set e$pLrec = 3eJ %EOEB.7ecordset e$pLrec.Open /select 8 fro$ ict/1 e$pLcon1 adOpenE'na$ic1 ad)oc"Opti$istic End Sub Sub clbo$() Text1.Text = Clear Text2.Text = Clear Text!.Text = Clear End Sub Sub displa&rec() On Error 7esu$e 3ext Text1.Text = e$pLrec.Fields./na$e/5. alue Text2.Text = e$pLrec.Fields./depart$ent/5. alue Text!.Text = e$pLrec.Fields./salar'/5. alue End Sub Sub updaterec() e$pLrec.Fields./na$e/5. alue = Text1.Text
!-
Computer Applications-II e$pLrec. ./depart$ent/5. alue = Text2.Text e$pLrec.Fields./salar'/5. alue = Text!.Text e$pLrec.Update +s,Box /7ecord Updated/1 2bInfor$ation End Sub
!9
Computer Applications-II
!=