?? form5.frm
字號:
VERSION 5.00
Begin VB.Form Form5
Caption = "Form5"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form5"
ScaleHeight = 11010
ScaleWidth = 15240
StartUpPosition = 3 'Windows Default
WindowState = 2 'Maximized
Begin VB.TextBox Text1
DataSource = "Data1"
Height = 615
Left = 2640
TabIndex = 6
Text = " "
Top = 1680
Width = 2055
End
Begin VB.TextBox Text2
DataSource = "Data1"
Height = 615
Left = 2640
TabIndex = 5
Text = " "
Top = 2880
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "GO"
Height = 495
Left = 5400
TabIndex = 4
Top = 1800
Width = 735
End
Begin VB.TextBox Text3
DataSource = "Data1"
Height = 615
Left = 2760
TabIndex = 3
Text = " "
Top = 4080
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "DEPART"
Height = 735
Left = 600
TabIndex = 2
Top = 5640
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "CANCEL"
Height = 615
Left = 3240
TabIndex = 1
Top = 5760
Width = 1455
End
Begin VB.CommandButton Command4
Caption = "EXIT"
Height = 615
Left = 5280
TabIndex = 0
Top = 5760
Width = 1335
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "E:\Documents and Settings\mhp\Desktop\platform1\TRAIN.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 375
Left = 5520
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "TRAIN"
Top = 6720
Visible = 0 'False
Width = 1935
End
Begin VB.Label Label1
Caption = "DEPARTURE"
BeginProperty Font
Name = "MS Serif"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 1920
TabIndex = 10
Top = 0
Width = 3735
End
Begin VB.Label Label2
Caption = "TRAIN NO"
Height = 615
Left = 0
TabIndex = 9
Top = 1680
Width = 1695
End
Begin VB.Label Label3
Caption = "TRAIN NAME"
Height = 375
Left = 0
TabIndex = 8
Top = 3000
Width = 2055
End
Begin VB.Label Label4
Caption = "PLATFORM NO"
Height = 735
Left = 0
TabIndex = 7
Top = 4200
Width = 2055
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Data1.Recordset.Fields(0) = Text1.Text Then
Text2.Text = Data1.Recordset.Fields(1)
Text3.Text = Data1.Recordset.Fields(3)
End Sub
Private Sub Command2_Click()
Data1.Recordset.Delete
MsgBox "platform no is added in available list"
End Sub
Private Sub Command3_Click()
Me.Hide
Form4.Show
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -