?? form1.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm本單位信息設置
Caption = "本單位信息設置"
ClientHeight = 4800
ClientLeft = 60
ClientTop = 405
ClientWidth = 5325
LinkTopic = "Form1"
ScaleHeight = 4800
ScaleWidth = 5325
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 600
Top = 4080
Width = 2775
_ExtentX = 4895
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\桌面\客戶管理系統\db2.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\桌面\客戶管理系統\db2.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "本單位信息表"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command1
Caption = "編輯"
Height = 375
Left = 2760
TabIndex = 21
Top = 3600
Width = 855
End
Begin VB.CommandButton Command2
Caption = "確定"
Enabled = 0 'False
Height = 375
Left = 3600
TabIndex = 20
Top = 3600
Width = 855
End
Begin VB.CommandButton Command3
Caption = "取消"
Height = 375
Left = 4440
TabIndex = 19
Top = 3600
Width = 855
End
Begin VB.Frame Frame1
Height = 3615
Left = 0
TabIndex = 0
Top = 0
Width = 5295
Begin VB.TextBox Text1
DataField = "單位名稱"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 9
Top = 240
Width = 3975
End
Begin VB.TextBox Text2
DataField = "地址"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 8
Top = 600
Width = 3975
End
Begin VB.TextBox Text3
DataField = "電話"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 7
Top = 1320
Width = 3975
End
Begin VB.TextBox Text4
DataField = "法人代表"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 6
Top = 1680
Width = 3975
End
Begin VB.TextBox Text5
DataField = "聯系電話"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 5
Top = 2040
Width = 3975
End
Begin VB.TextBox Text6
DataField = "開戶銀行"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 4
Top = 2400
Width = 3975
End
Begin VB.TextBox Text7
DataField = "銀行賬號"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 3
Top = 2760
Width = 3975
End
Begin VB.TextBox Text8
DataField = "網址"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 2
Top = 3120
Width = 3975
End
Begin VB.TextBox Text9
DataField = "郵政編碼"
DataSource = "Adodc1"
Height = 350
Left = 1200
TabIndex = 1
Top = 960
Width = 3975
End
Begin VB.Label Label1
Caption = "單位名稱:"
Height = 375
Left = 120
TabIndex = 18
Top = 360
Width = 1695
End
Begin VB.Label Label2
Caption = "地址:"
Height = 255
Left = 120
TabIndex = 17
Top = 720
Width = 975
End
Begin VB.Label Label3
Caption = "單位電話:"
Height = 255
Left = 120
TabIndex = 16
Top = 1440
Width = 975
End
Begin VB.Label Label4
Caption = "法人代表:"
Height = 255
Left = 120
TabIndex = 15
Top = 1800
Width = 975
End
Begin VB.Label Label5
Caption = "聯系電話:"
Height = 255
Left = 120
TabIndex = 14
Top = 2160
Width = 975
End
Begin VB.Label Label6
Caption = "開戶銀行:"
Height = 255
Left = 120
TabIndex = 13
Top = 2520
Width = 975
End
Begin VB.Label Label7
Caption = "銀行賬號:"
Height = 255
Left = 120
TabIndex = 12
Top = 2880
Width = 975
End
Begin VB.Label Label8
Caption = "網址:"
Height = 255
Left = 120
TabIndex = 11
Top = 3240
Width = 855
End
Begin VB.Label Label9
Caption = "郵政編碼:"
Height = 255
Left = 120
TabIndex = 10
Top = 1080
Width = 975
End
End
End
Attribute VB_Name = "frm本單位信息設置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Text1.SetFocus
Command2.Enabled = True
End Sub
Private Sub Command2_Click()
On Error Resume Next
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "" Or Text6.Text = "" Or Text7.Text = "" Or Text8.Text = "" Or Text9.Text = "" Then
MsgBox "輸入不完全", , "信息提示"
Else
Call main
Set adoRs = adoCon.Execute("update 本單位信息表 set 單位名稱='" + Text1.Text + "',地址='" + Text2.Text + "',電話='" + Text3.Text + "',法人代表='" + Text4.Text + "',聯系電話='" + Text5.Text + "',開戶銀行='" + Text6.Text + "',銀行賬號='" + Text7.Text + "',網址='" + Text8.Text + "',郵政編碼='" + Text9.Text + "'")
Set adoRs = adoCon.Execute("update 客戶信息表 set 單位名稱='" + Text1.Text + "',郵政編碼='" + Text9.Text + "'")
MsgBox "信息修改成功!", 48, "客戶管理系統"
adoCon.Close
End If
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
Private Sub Form_Load()
On Error Resume Next
Adodc1.RecordSource = "select * from 本單位信息表"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount > 0 Then
Text1.Text = Adodc1.Recordset.Fields("單位名稱")
Text2.Text = Adodc1.Recordset.Fields("地址")
Text3.Text = Adodc1.Recordset.Fields("電話")
Text4.Text = Adodc1.Recordset.Fields("法人代表")
Text5.Text = Adodc1.Recordset.Fields("聯系電話")
Text6.Text = Adodc1.Recordset.Fields("開戶銀行")
Text7.Text = Adodc1.Recordset.Fields("銀行賬號")
Text8.Text = Adodc1.Recordset.Fields("網址")
Text9.Text = Adodc1.Recordset.Fields("郵政編碼")
Else
End If
frm主窗體.StatusBar1.Panels(1) = Me.Caption
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm主窗體.StatusBar1.Panels(1) = "楊揚工作室 作者:小楊"
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text2.SetFocus
Else
End If
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text9.SetFocus
Else
End If
End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text4.SetFocus
Else
End If
End Sub
Private Sub Text4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text5.SetFocus
Else
End If
End Sub
Private Sub Text5_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text6.SetFocus
Else
End If
End Sub
Private Sub Text6_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text7.SetFocus
Else
End If
End Sub
Private Sub Text7_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text8.SetFocus
Else
End If
End Sub
Private Sub Text8_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text9.SetFocus
Else
End If
End Sub
Private Sub Text9_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text3.SetFocus
Else
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -