?? form4.frm
字號:
VERSION 5.00
Begin VB.Form Form4
Caption = "添加賽馬情況記錄"
ClientHeight = 3030
ClientLeft = 60
ClientTop = 345
ClientWidth = 3855
LinkTopic = "Form4"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3030
ScaleWidth = 3855
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.TextBox Text3
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 9
Top = 1320
Width = 2175
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "Form4.frx":0000
Left = 1200
List = "Form4.frx":0031
TabIndex = 8
Text = "請選擇場次"
Top = 1920
Width = 2175
End
Begin VB.CommandButton Command2
Caption = "取 消"
Height = 375
Left = 2160
TabIndex = 7
Top = 2520
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確 定"
Height = 375
Left = 720
TabIndex = 6
Top = 2520
Width = 1095
End
Begin VB.TextBox Text2
Enabled = 0 'False
Height = 375
Left = 1200
TabIndex = 3
Top = 720
Width = 2175
End
Begin VB.TextBox Text1
Height = 375
Left = 1200
TabIndex = 1
Top = 120
Width = 2175
End
Begin VB.Label Label4
Caption = "場次:"
Height = 255
Left = 360
TabIndex = 5
Top = 2040
Width = 735
End
Begin VB.Label Label3
Caption = "資料:"
Height = 255
Left = 360
TabIndex = 4
Top = 1440
Width = 615
End
Begin VB.Label Label2
Caption = "姓名:"
Height = 255
Left = 360
TabIndex = 2
Top = 840
Width = 735
End
Begin VB.Label Label1
Caption = "編號:"
Height = 255
Left = 360
TabIndex = 0
Top = 240
Width = 735
End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private rs3 As New ADODB.Recordset
Private strconn As String
Private strsql As String
Private Sub Command1_Click()
Call add2
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Resize()
Form4.Height = 3435
Form4.Width = 3975
End Sub
Private Sub Text1_Change()
On Error Resume Next
strconn = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\horse.mdb"
strsql = "select * from horse1"
With rs3
If .State = adStateOpen Then
.Close
End If
.ActiveConnection = strconn
.Source = strsql
.LockType = adLockOptimistic
.CursorLocation = adUseClient
.CursorType = adOpenDynamic
.Open
End With
rs3.MoveFirst
Do While Not rs3.EOF
If Form4.Text1.Text = rs3(0) Then
Form4.Text2.Text = rs3(1)
Form4.Text3.Text = rs3(2)
Exit Sub
End If
rs3.MoveNext
Loop
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -