📄 form7.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form7
Caption = "目前欠款帐单"
ClientHeight = 4395
ClientLeft = 60
ClientTop = 345
ClientWidth = 4455
LinkTopic = "Form7"
ScaleHeight = 4395
ScaleWidth = 4455
StartUpPosition = 3 '窗口缺省
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 840
Top = 3720
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=111;Initial Catalog=D:\my\form\111"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 欠款记录"
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 = 1
Top = 3600
Width = 735
End
Begin VB.Frame Frame1
Caption = "欠款帐单"
Height = 3495
Left = 360
TabIndex = 0
Top = 120
Width = 3495
Begin VB.CommandButton Command2
Caption = "查找"
Height = 255
Left = 1440
TabIndex = 10
Top = 960
Width = 975
End
Begin VB.TextBox Text4
DataField = "欠款金额"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 9
Top = 2640
Width = 1455
End
Begin VB.TextBox Text3
DataField = "实收金额"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 7
Top = 1920
Width = 1455
End
Begin VB.TextBox Text2
DataField = "应收总额"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 5
Top = 1320
Width = 1455
End
Begin VB.TextBox Text1
DataField = "货品名称"
DataSource = "Adodc1"
Height = 375
Left = 1200
TabIndex = 3
Top = 360
Width = 1455
End
Begin VB.Label Label4
Caption = "欠款"
Height = 375
Left = 240
TabIndex = 8
Top = 2640
Width = 855
End
Begin VB.Label Label3
Caption = "实收帐款"
Height = 495
Left = 240
TabIndex = 6
Top = 2040
Width = 855
End
Begin VB.Label Label2
Caption = "应收帐款"
Height = 375
Left = 240
TabIndex = 4
Top = 1440
Width = 975
End
Begin VB.Label Label1
Caption = "商品名"
Height = 375
Left = 240
TabIndex = 2
Top = 480
Width = 975
End
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form6.Show
Me.Hide
End Sub
Private Sub Command2_Click()
If Len(Text1.Text) > 0 Then
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select * from 欠款记录 where 货品名称= '" & Trim(Text1.Text) & "'"
Adodc1.Refresh
Else
MsgBox ("请输入商品名!")
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -