📄 form2.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form jbxx
Caption = "Form2"
ClientHeight = 5070
ClientLeft = 60
ClientTop = 345
ClientWidth = 5490
LinkTopic = "Form2"
ScaleHeight = 5070
ScaleWidth = 5490
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton command1
Caption = "返回"
Height = 375
Left = 2160
TabIndex = 1
Top = 4560
Width = 1095
End
Begin MSAdodcLib.Adodc da
Height = 375
Left = 1080
Top = 5160
Width = 3015
_ExtentX = 5318
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
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 MSDataGridLib.DataGrid DataGrid1
Height = 4215
Left = 240
TabIndex = 0
Top = 240
Width = 5055
_ExtentX = 8916
_ExtentY = 7435
_Version = 393216
AllowUpdate = -1 'True
HeadLines = 1
RowHeight = 15
AllowAddNew = -1 'True
AllowDelete = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
Attribute VB_Name = "jbxx"
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 Form_Load()
On Error GoTo err1
Me.Caption = xtm
Me.Move (main.Width - Me.Width) / 2, (main.Height - Me.Height) / 2
conn1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\bak.mdb"
da.ConnectionString = conn1
da.CommandType = adCmdText
Select Case flag
Case 1
jbxx.Caption = "维护委托单位"
da.RecordSource = "select sy as 索引 ,wtdwmc as 委托单位 from wtdwb order by sy"
da.Refresh
Case 2
jbxx.Caption = "维护仪器名称"
da.RecordSource = "select sy as 索引 ,yqmc as 仪器名称 from yqmcb order by sy"
da.Refresh
Case 3
jbxx.Caption = "仪器规格型号"
da.RecordSource = "select sy as 索引 ,xhmc as 仪器规格型号 from xhggb order by sy"
da.Refresh
Case 4
jbxx.Caption = "检定依据表"
da.RecordSource = "select sy as 索引 ,yjmc as 检定依据 from jdyjb order by sy"
da.Refresh
Case 5
jbxx.Caption = "检定器具名称表"
da.RecordSource = "select sy as 索引 ,yqmc as 检定器具名称 from jdqjmcb order by sy"
da.Refresh
Case 6
jbxx.Caption = "检定器具型号表"
da.RecordSource = "select sy as 索引 ,yqxh as 检定器具型号 from jdqjxhb order by sy"
da.Refresh
Case 7
jbxx.Caption = "准确度表"
da.RecordSource = "select sy as 索引 ,zqdmc as 准确度表 from zqdb order by sy"
da.Refresh
Case 8
jbxx.Caption = "检定结果表"
da.RecordSource = "select sy as 索引 ,jdjgmc as 检定结果 from jdjgmcb order by sy"
da.Refresh
Case 9
jbxx.Caption = "检定结果数据"
da.RecordSource = "select sy as 索引 ,jdjgsj as 检定结果数据 from jdjgsjb order by sy"
da.Refresh
Case 10
jbxx.Caption = "制造厂"
da.RecordSource = "select sy as 索引 ,zzc as 检定结果数据 from zzcb order by sy"
da.Refresh
Case 88
jbxx.Caption = "检定证书号"
da.RecordSource = "select sy as 索引 ,jdzs as 检定证书号 from qjjdzsb order by sy"
da.Refresh
Case 99
jbxx.Caption = "温度"
da.RecordSource = "select sy as 索引 ,wd as 温度 from wdb order by sy"
da.Refresh
Case 100
jbxx.Caption = "湿度"
da.RecordSource = "select sy as 索引 ,sd as 湿度 from sdb order by sy"
da.Refresh
End Select
Set DataGrid1.DataSource = da
DataGrid1.Columns(0).Width = 500
DataGrid1.Columns(1).Width = 3000
err1:
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -