📄 cxdy.frm
字号:
Width = 8775
Begin MSDataGridLib.DataGrid DataGrid1
Height = 3615
Left = 120
TabIndex = 2
Top = 240
Width = 8535
_ExtentX = 15055
_ExtentY = 6376
_Version = 393216
HeadLines = 1
RowHeight = 15
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
Begin VB.CommandButton Command1
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 7440
TabIndex = 0
Top = 360
Width = 975
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 960
Top = 3120
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=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=\ltgl\ltgl.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=\ltgl\ltgl.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from bmsz"
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 MSAdodcLib.Adodc Adodc2
Height = 375
Left = 2400
Top = 3120
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=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=\ltgl\ltgl.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=\ltgl\ltgl.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from spsz"
Caption = "Adodc2"
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
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Combo1_Click()
Dim adstateclose As AccessConstants
If Combo1.Text <> "" Then
If Combo1.Text = "库存总库" Then
DataCombo2.Visible = False
Label2(0).Visible = False
Label2(3).Caption = "入库日期"
If DataEnvironment2.rsCommand1.State <> adstateclose Then
DataEnvironment2.rsCommand1.Close
End If
DataEnvironment2.Command1
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command1"
DataGrid1.Refresh
Else
Label2(0).Visible = True
DataCombo2.Visible = True
Label2(3).Caption = "出库日期"
If DataEnvironment2.rsCommand2.State <> adstateclose Then
DataEnvironment2.rsCommand2.Close
End If
DataEnvironment2.Command2
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command2"
DataGrid1.Refresh
End If
End If
End Sub
Private Sub Command1_Click()
Unload Form7
End Sub
Private Sub Command2_Click()
Dim adstateclose As AccessConstants
If Combo1.Text <> "" Then
If Combo1.Text = "库存总库" Then
If DataCombo1.Text <> "" And Text1.Text <> "" Then
If DataEnvironment2.rsCommand3.State <> adstateclose Then
DataEnvironment2.rsCommand3.Close
End If
DataEnvironment2.Command3 DataCombo1.Text, Text1.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command3"
End If
If DataCombo1.Text <> "" And Text1.Text = "" Then
If DataEnvironment2.rsCommand4.State <> adstateclose Then
DataEnvironment2.rsCommand4.Close
End If
DataEnvironment2.Command4 DataCombo1.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command4"
End If
Else
If DataCombo1.Text <> "" And DataCombo2.Text <> "" And Text1.Text <> "" Then
If DataEnvironment2.rsCommand5.State <> adstateclose Then
DataEnvironment2.rsCommand5.Close
End If
DataEnvironment2.Command5 DataCombo2.Text, DataCombo1.Text, Text1.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command5"
End If
If DataCombo2.Text = "" And DataCombo1.Text <> "" And Text1.Text <> "" Then
If DataEnvironment2.rsCommand6.State <> adstateclose Then
DataEnvironment2.rsCommand6.Close
End If
DataEnvironment2.Command6 DataCombo1.Text, Text1.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command6"
End If
If DataCombo2.Text <> "" And DataCombo1.Text <> "" And Text1.Text = "" Then
If DataEnvironment2.rsCommand7.State <> adstateclose Then
DataEnvironment2.rsCommand7.Close
End If
DataEnvironment2.Command7 DataCombo2.Text, DataCombo1.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command7"
End If
If DataCombo2.Text = "" And DataCombo1.Text <> "" And Text1.Text = "" Then
If DataEnvironment2.rsCommand8.State <> adstateclose Then
DataEnvironment2.rsCommand8.Close
End If
DataEnvironment2.Command8 DataCombo1.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command8"
End If
If DataCombo2.Text <> "" And DataCombo1.Text = "" And Text1.Text = "" Then
If DataEnvironment2.rsCommand9.State <> adstateclose Then
DataEnvironment2.rsCommand9.Close
End If
DataEnvironment2.Command9 DataCombo2.Text, DTPicker1.Value, DTPicker2.Value
Set DataGrid1.DataSource = DataEnvironment2
DataGrid1.DataMember = "command9"
End If
End If
End If
End Sub
Private Sub Command3_Click()
DataCombo1.Text = ""
DataCombo2.Text = ""
Text1.Text = ""
End Sub
Private Sub Command4_Click()
DataReport2.Show 1
End Sub
Private Sub Form_Load()
DTPicker1.Value = Date
DTPicker2.Value = Date
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -