📄 frm_details.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmaccdetails
BackColor = &H00000040&
Caption = "Account Details..."
ClientHeight = 5220
ClientLeft = 60
ClientTop = 450
ClientWidth = 11580
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 5220
ScaleWidth = 11580
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 4800
Top = 3000
Width = 2775
_ExtentX = 4895
_ExtentY = 582
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 = $"FRM_DETAILS.frx":0000
OLEDBString = $"FRM_DETAILS.frx":008B
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "Table1"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame2
BackColor = &H00000040&
Height = 1155
Left = 6660
TabIndex = 21
Top = 180
Width = 3735
Begin VB.TextBox Text4
Appearance = 0 'Flat
Height = 360
Left = 2220
TabIndex = 23
Top = 240
Width = 1455
End
Begin VB.CommandButton Command8
Caption = "G&o"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1260
TabIndex = 22
Top = 660
Width = 1155
End
Begin VB.Label Label4
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "Go to Customer no :-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Left = 60
TabIndex = 24
Top = 300
Width = 2115
End
End
Begin VB.Frame Frame1
BackColor = &H00000040&
Height = 1155
Left = 6660
TabIndex = 14
Top = 1620
Width = 4335
Begin VB.CommandButton Command7
Caption = "Go back"
Height = 255
Left = 2940
TabIndex = 20
Top = 720
Width = 1215
End
Begin VB.CommandButton Command6
Caption = "Modify"
Height = 255
Left = 2940
TabIndex = 19
Top = 240
Width = 1215
End
Begin VB.CommandButton Command5
Caption = "Move Next"
Height = 255
Left = 1560
TabIndex = 18
Top = 240
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "Move Previous"
Height = 255
Left = 1560
TabIndex = 17
Top = 720
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "Move Last"
Height = 255
Left = 180
TabIndex = 16
Top = 720
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "Move First"
Height = 255
Left = 180
TabIndex = 15
Top = 240
Width = 1215
End
End
Begin VB.TextBox txtBALANCE
DataField = "balance"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 13
Top = 2490
Width = 3300
End
Begin VB.TextBox txtSUBSCRIPTION_DATE
DataField = "dos"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 11
Top = 2115
Width = 2640
End
Begin VB.TextBox txtDATE_OF_BIRTH
DataField = "dob"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 9
Top = 1725
Width = 2640
End
Begin VB.TextBox txtGENDER_M_F
DataField = "gender"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 7
Top = 1350
Width = 1650
End
Begin VB.TextBox txtADDRESS
DataField = "address"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 5
Top = 975
Width = 3375
End
Begin VB.TextBox txtNAME
DataField = "name"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 3
Top = 585
Width = 2475
End
Begin VB.TextBox txtCUSTOMER_NO
DataField = "costumer_no"
DataSource = "Adodc1"
Height = 285
Left = 2625
TabIndex = 1
Top = 210
Width = 3300
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "BALANCE:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 6
Left = 1485
TabIndex = 12
Top = 2535
Width = 1110
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "SUBSCRIPTION_DATE:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 5
Left = 105
TabIndex = 10
Top = 2160
Width = 2490
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "DATE_OF_BIRTH:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 4
Left = 675
TabIndex = 8
Top = 1770
Width = 1920
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "GENDER_M_F:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 3
Left = 1005
TabIndex = 6
Top = 1395
Width = 1590
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "ADDRESS:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 2
Left = 1425
TabIndex = 4
Top = 1020
Width = 1170
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "NAME:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 1
Left = 1875
TabIndex = 2
Top = 630
Width = 720
End
Begin VB.Label lblFieldLabel
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackColor = &H00000040&
Caption = "CUSTOMER_NO:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00C0C0C0&
Height = 240
Index = 0
Left = 795
TabIndex = 0
Top = 255
Width = 1800
End
End
Attribute VB_Name = "frmaccdetails"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Adodc1.Recordset.MoveFirst
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.MoveLast
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF = True Then
Adodc1.Recordset.MoveLast
End If
End Sub
Private Sub Command5_Click()
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MoveFirst
End If
End Sub
Private Sub Command6_Click()
Adodc1.Recordset.Update
End Sub
Private Sub Command7_Click()
Unload Me
End Sub
Private Sub Command8_Click()
On Error GoTo Errorhandle
Adodc1.Recordset = "select * from accountdetails where costumer_no = '" + Text1.Text + "'"
Adodc1.Refresh
Do While Not Adodc1.Recordset.EOF
c = c + 1
Adodc1.Recordset.MoveNext
Loop
If c <> 0 Then
MsgBox "duplicate code", vbExclamation, "duplicat"
Text1.Text = ""
Text1.SetFocus
Else
Text2.SetFocus
End If
Exit Sub
Errorhandle:
MsgBox " error occured ! wrong member code", vbInformation, "Error"
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -