📄 outputpara.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form outputpara
Caption = "参数设置"
ClientHeight = 4755
ClientLeft = 60
ClientTop = 345
ClientWidth = 10440
Icon = "outputpara.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4755
ScaleWidth = 10440
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton Command2
Caption = "退出"
Height = 345
Left = 9570
TabIndex = 10
Top = 2580
Width = 825
End
Begin VB.CommandButton Command1
Caption = "添加"
Height = 345
Left = 8070
TabIndex = 9
Top = 2580
Width = 885
End
Begin VB.TextBox Text3
Height = 345
Left = 6420
TabIndex = 6
Top = 2580
Width = 1455
End
Begin VB.TextBox Text2
Height = 345
Left = 3900
TabIndex = 5
Top = 2580
Width = 1485
End
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = "D:\CBSSYS\bookcgk.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 435
Left = 6150
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "单号参数"
Top = 3720
Visible = 0 'False
Width = 2445
End
Begin VB.TextBox Text1
DataField = "名称"
DataSource = "Data1"
Height = 345
Left = 1080
Locked = -1 'True
TabIndex = 3
Top = 2580
Width = 1395
End
Begin MSDBGrid.DBGrid DBGrid2
Bindings = "outputpara.frx":0442
Height = 1785
Left = 30
OleObjectBlob = "outputpara.frx":0456
TabIndex = 2
Top = 2940
Width = 10395
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\cbssys\bookcgk.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 5850
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "输出参数"
Top = 1110
Visible = 0 'False
Width = 2295
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "outputpara.frx":14ED
Height = 2445
Left = 60
OleObjectBlob = "outputpara.frx":1501
TabIndex = 1
Top = 90
Width = 10335
End
Begin MSComctlLib.TabStrip TabStrip1
Height = 2535
Left = 0
TabIndex = 0
Top = 30
Width = 10395
_ExtentX = 18336
_ExtentY = 4471
MultiRow = -1 'True
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 1
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
ImageVarType = 2
EndProperty
EndProperty
End
Begin VB.Label Label3
Caption = "提书单号:"
Height = 315
Left = 5550
TabIndex = 8
Top = 2640
Width = 1155
End
Begin VB.Label Label2
Caption = "发书单号:"
Height = 345
Left = 3030
TabIndex = 7
Top = 2640
Width = 1125
End
Begin VB.Label Label1
Caption = "书商名称:"
Height = 285
Left = 150
TabIndex = 4
Top = 2640
Width = 1005
End
End
Attribute VB_Name = "outputpara"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Data2.Recordset.AddNew
On Error Resume Next
Data2.Recordset("名称") = Text1.Text
Data2.Recordset("发书单号") = Text2.Text
Data2.Recordset("提书单号") = Text3.Text
Data2.Recordset.Update
Data2.Refresh
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Data1_Reposition()
On Error Resume Next
namefs = Data1.Recordset("名称").Value
Data2.RecordSource = "select * from 单号参数 where 名称='" & namefs & "' order by 日期"
Data2.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -