ATM Sreen Sorts
ATM Sreen Sorts
ATM Sreen Sorts
SREEN SORTS:
FORM1:
Private Sub Command1_Click()
Form2.Show
Me.Hide
End Sub
End
End Sub
FORM2:
Dim db As Database
Dim rs As Recordset
Dim b As Integer
Private Sub Command1_Click()
b = InputBox(Text1.Text)
rs.MoveFirst
Label2.Visible = True
Label3.Visible = True
Text1.Visible = True
Text2.Visible = True
Call disp
Command1.Visible = False
Command3.Visible = True
Exit Do
End If
rs.MoveNext
Loop
If rs.EOF() Then
End If
End Sub
Form1.Show
End Sub
Private Sub Command3_Click()
Form3.Show
End Sub
Set db = DBEngine.OpenDatabase("d:\form2.mdb")
Set rs = db.OpenRecordset("fm2")
Label2.Visible = False
Label3.Visible = False
Text1.Visible = False
Text2.Visible = False
Command3.Visible = False
End Sub
Text1.Text = rs.Fields(0)
Text2.Text = rs.Fields(1)
End Sub
FORM3:
Form4.Show
Me.Hide
End Sub
Form6.Show
Me.Hide
End Sub
Form7.Show
Me.Hide
End Sub
End
End Sub
FORM4:
Dim db As Database
Dim rs As Recordset
rs.AddNew
rs.Fields(0) = Text1.Text
rs.Fields(1) = Text2.Text
rs.Update
MsgBox "deposited"
End Sub
Text1.Text = ""
Text2.Text = ""
Form3.Show
End Sub
Set db = OpenDatabase("D:\form4.mdb")
Set rs = db.OpenRecordset("fm4")
End Sub
“FORM5 NO NEED”
FORM6:
Dim db As Database
Dim rs As Recordset
Dim b As Integer
b = InputBox(Text1.Text)
rs.MoveFirst
Call disp
Exit Do
End If
rs.MoveNext
Loop
If rs.EOF() Then
End If
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Form3.Show
End Sub
End Sub
rs.Edit
rs.Fields(0) = Text1.Text
rs.Fields(1) = Text4.Text
rs.Update
MsgBox "updated"
End Sub
Set db = OpenDatabase("D:\form4.mdb")
Set rs = db.OpenRecordset("fm4")
End Sub
Public Sub disp()
Text1.Text = rs.Fields(0)
Text2.Text = rs.Fields(1)
End Sub
FORM7:
Dim db As Database
Dim rs As Recordset
Dim b As Integer
DataReport1.Show
End Sub
Text1.Text = ""
Text3.Text = ""
Form3.Show
End Sub
Private Sub Command3_Click()
b = InputBox(Text1.Text)
rs.MoveFirst
Call disp
Exit Do
End If
rs.MoveNext
Loop
If rs.EOF() Then
End If
End Sub
Set db = OpenDatabase("D:\form4.mdb")
Set rs = db.OpenRecordset("fm4")
End Sub
Text1.Text = rs.Fields(0)
Text3.Text = rs.Fields(1)
End Sub