?? frmqzclient.frm
字號:
VERSION 5.00
Begin VB.Form frmQZClient
Caption = "求租客戶資料"
ClientHeight = 5910
ClientLeft = 60
ClientTop = 345
ClientWidth = 9675
LinkTopic = "Form1"
ScaleHeight = 5910
ScaleWidth = 9675
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdClose
Caption = "關 閉"
Height = 495
Left = 8280
TabIndex = 40
Top = 360
Width = 1095
End
Begin VB.Frame Frame2
Height = 3615
Left = 360
TabIndex = 16
Top = 2040
Width = 9015
Begin VB.TextBox Text1
Height = 735
Index = 9
Left = 1320
MultiLine = -1 'True
TabIndex = 38
Top = 2520
Width = 7335
End
Begin VB.TextBox Text1
Height = 375
Index = 8
Left = 7080
TabIndex = 36
Top = 1800
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Index = 7
Left = 4200
TabIndex = 34
Top = 1800
Width = 855
End
Begin VB.TextBox Text1
Height = 375
Index = 6
Left = 1320
TabIndex = 31
Top = 1800
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Index = 5
Left = 7080
TabIndex = 28
Top = 1080
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
Index = 4
Left = 4200
TabIndex = 26
Top = 1080
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Index = 3
Left = 1320
TabIndex = 24
Top = 1080
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
Index = 2
Left = 7080
TabIndex = 22
Top = 360
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
Index = 1
Left = 4680
TabIndex = 20
Top = 360
Width = 1215
End
Begin VB.TextBox Text1
Height = 375
Index = 0
Left = 1680
TabIndex = 18
Top = 360
Width = 1215
End
Begin VB.Label Label6
Caption = "月"
Height = 255
Left = 5160
TabIndex = 39
Top = 1920
Width = 255
End
Begin VB.Label Label1
Caption = "備 注"
Height = 255
Index = 9
Left = 360
TabIndex = 37
Top = 2760
Width = 735
End
Begin VB.Label Label1
Caption = "意向房屋編號"
Height = 255
Index = 8
Left = 5880
TabIndex = 35
Top = 1920
Width = 1215
End
Begin VB.Label Label1
Caption = "意向租期"
Height = 255
Index = 7
Left = 3360
TabIndex = 33
Top = 1920
Width = 735
End
Begin VB.Label Label5
Caption = "元/月"
Height = 255
Left = 2640
TabIndex = 32
Top = 1920
Width = 495
End
Begin VB.Label Label1
Caption = "意向價位"
Height = 255
Index = 6
Left = 360
TabIndex = 30
Top = 1920
Width = 735
End
Begin VB.Label Label2
Caption = "平米"
Height = 255
Left = 5520
TabIndex = 29
Top = 1200
Width = 495
End
Begin VB.Label Label1
Caption = "裝修要求"
Height = 255
Index = 5
Left = 6240
TabIndex = 27
Top = 1200
Width = 855
End
Begin VB.Label Label1
Caption = "面積要求"
Height = 255
Index = 4
Left = 3360
TabIndex = 25
Top = 1200
Width = 735
End
Begin VB.Label Label1
Caption = "房型要求"
Height = 255
Index = 3
Left = 360
TabIndex = 23
Top = 1200
Width = 855
End
Begin VB.Label Label1
Caption = "電話"
Height = 255
Index = 2
Left = 6360
TabIndex = 21
Top = 480
Width = 495
End
Begin VB.Label Label1
Caption = "求租客戶姓名"
Height = 255
Index = 1
Left = 3360
TabIndex = 19
Top = 480
Width = 1095
End
Begin VB.Label Label1
Caption = "求租客戶編號"
Height = 255
Index = 0
Left = 360
TabIndex = 17
Top = 480
Width = 1215
End
End
Begin VB.Frame Frame3
Caption = "功能鍵"
Height = 1695
Left = 240
TabIndex = 5
Top = 120
Width = 6375
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 495
Left = 5040
TabIndex = 15
Top = 240
Width = 975
End
Begin VB.CommandButton cmdQuery
Caption = "查找"
Height = 495
Left = 5040
TabIndex = 14
Top = 960
Width = 975
End
Begin VB.CommandButton cmdLast
Caption = "最后一條"
Height = 495
Left = 3840
TabIndex = 13
Top = 960
Width = 975
End
Begin VB.CommandButton cmdNext
Caption = "后一條"
Height = 495
Left = 2640
TabIndex = 12
Top = 960
Width = 975
End
Begin VB.CommandButton cmdPrev
Caption = "前一條"
Height = 495
Left = 1440
TabIndex = 11
Top = 960
Width = 975
End
Begin VB.CommandButton cmdFirst
Caption = "第一條"
Height = 495
Left = 360
TabIndex = 10
Top = 960
Width = 975
End
Begin VB.CommandButton cmdSave
Caption = "保存"
Height = 495
Left = 3840
TabIndex = 9
Top = 240
Width = 975
End
Begin VB.CommandButton cmdDel
Caption = "刪除"
Height = 495
Left = 2640
TabIndex = 8
Top = 240
Width = 975
End
Begin VB.CommandButton cmdEdit
Caption = "修改"
Height = 495
Left = 1440
TabIndex = 7
Top = 240
Width = 975
End
Begin VB.CommandButton cmdAdd
Caption = "添加"
Height = 495
Left = 360
TabIndex = 6
Top = 240
Width = 975
End
End
Begin VB.Frame Frame1
Height = 735
Index = 1
Left = 6840
TabIndex = 1
Top = 1080
Width = 2535
Begin VB.TextBox Text2
Height = 375
Left = 960
TabIndex = 2
Top = 240
Width = 615
End
Begin VB.Label Label4
Caption = "條記錄"
Height = 255
Index = 1
Left = 1800
TabIndex = 4
Top = 360
Width = 615
End
Begin VB.Label Label3
Caption = "共有:"
Height = 255
Index = 1
Left = 240
TabIndex = 3
Top = 360
Width = 615
End
End
Begin VB.CommandButton cmdYuDing
Caption = "下定金預定"
Height = 495
Left = 6840
TabIndex = 0
Top = 360
Width = 1215
End
End
Attribute VB_Name = "frmQZClient"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'定義幾個共用變量
Dim rs_qzclient As New ADODB.Recordset
Dim rs_count As New ADODB.Recordset
Dim sqlcount As String
Dim sqlqzclient As String
'設置一個add變量用于保存時判斷是從添加還是修改后保存
Dim add
Private Sub cmdadd_Click()
'設置除保存和取消按鈕外的其他按鈕不可用
cmdAdd.Enabled = False
cmdEdit.Enabled = False
cmdDel.Enabled = False
cmdSave.Enabled = True
cmdCancel.Enabled = True
cmdFirst.Enabled = False
cmdPrev.Enabled = False
cmdNext.Enabled = False
cmdLast.Enabled = False
cmdQuery.Enabled = False
'設置添加狀態時,下定金預定按鈕不可用
cmdYuDing.Enabled = False
'需要清空所有text框,并且設置它們可寫
For i = 0 To 9
Text1(i).Text = ""
Text1(i).Enabled = True
Next i
'add變量用于保存時判斷是從添加還是修改后保存
add = 1
Text1(0).SetFocus
End Sub
Private Sub cmdCancel_Click()
'取消按鈕用于用戶添加或修改過程中放棄添加或修改操作
cmdSave.Enabled = False
cmdCancel.Enabled = False
cmdAdd.Enabled = True
cmdQuery.Enabled = True
'如果是從添加后取消
If add = 1 Then
'如果當前QZClient表中有數據則顯示第一條數據
If Not rs_qzclient.EOF And Not rs_qzclient.BOF Then
For i = 0 To 9
Text1(i).Text = rs_qzclient.Fields(i)
Next i
cmdEdit.Enabled = True
cmdDel.Enabled = True
cmdFirst.Enabled = True
cmdPrev.Enabled = True
cmdNext.Enabled = True
cmdLast.Enabled = True
cmdYuDing.Enabled = True
'如果沒有數據,則顯示空
Else
For i = 0 To 9
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -