📄 frmidcx.frm
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Frmidcx
BorderStyle = 1 'Fixed Single
Caption = "鲜花查询"
ClientHeight = 6075
ClientLeft = 45
ClientTop = 330
ClientWidth = 7950
BeginProperty Font
Name = "幼圆"
Size = 15.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 6075
ScaleWidth = 7950
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 1680
TabIndex = 17
Top = 1680
Width = 1695
End
Begin VB.TextBox txtno
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5280
TabIndex = 14
Top = 840
Width = 1695
End
Begin VB.TextBox txtmoy
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 12
Top = 840
Width = 1695
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel3
Height = 375
Left = 3720
OleObjectBlob = "Frmidcx.frx":0000
TabIndex = 11
Top = 240
Width = 1335
End
Begin VB.TextBox txtname
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5280
TabIndex = 10
Top = 120
Width = 1695
End
Begin VB.Frame Frame2
Height = 1095
Left = 240
TabIndex = 5
Top = 4560
Width = 7395
Begin VB.CommandButton Command1
Caption = "最前一条"
BeginProperty Font
Name = "幼圆"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 360
TabIndex = 9
Top = 360
Width = 1215
End
Begin VB.CommandButton Command6
Caption = "最后一条"
BeginProperty Font
Name = "幼圆"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5880
TabIndex = 8
Top = 360
Width = 1215
End
Begin VB.CommandButton Command7
Caption = "下一条"
BeginProperty Font
Name = "幼圆"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4080
TabIndex = 7
Top = 360
Width = 1215
End
Begin VB.CommandButton Command8
Caption = "上一条"
BeginProperty Font
Name = "幼圆"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 2160
TabIndex = 6
Top = 360
Width = 1215
End
End
Begin VB.CommandButton Command9
Caption = "查 询"
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5280
TabIndex = 4
Top = 1680
Width = 1215
End
Begin ACTIVESKINLibCtl.Skin Skin1
Left = 120
OleObjectBlob = "Frmidcx.frx":0061
Top = 5160
End
Begin VB.TextBox txtid
BeginProperty Font
Name = "幼圆"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 3
Top = 120
Width = 1695
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel1
Height = 375
Left = 240
OleObjectBlob = "Frmidcx.frx":0295
TabIndex = 1
Top = 240
Width = 375
End
Begin MSDataGridLib.DataGrid DataGrid1
Height = 1935
Left = 240
TabIndex = 0
Top = 2400
Width = 7335
_ExtentX = 12938
_ExtentY = 3413
_Version = 393216
AllowUpdate = 0 'False
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
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel2
Height = 375
Left = 1200
OleObjectBlob = "Frmidcx.frx":02EC
TabIndex = 2
Top = 240
Width = 375
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4
Height = 375
Left = 240
OleObjectBlob = "Frmidcx.frx":0343
TabIndex = 13
Top = 960
Width = 1335
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel5
Height = 375
Left = 3720
OleObjectBlob = "Frmidcx.frx":03A4
TabIndex = 15
Top = 960
Width = 1335
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel6
Height = 375
Left = 240
OleObjectBlob = "Frmidcx.frx":0405
TabIndex = 16
Top = 1680
Width = 1335
End
End
Attribute VB_Name = "Frmidcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Rs As ADODB.Recordset
Private Sub Command9_Click()
On Error Resume Next
Dim sql As String
sql = "select 鲜花编号,鲜花名称,送花原因,价格,鲜花数量,进货日期 from floweryy where 1=1"
If txtid.Text <> "" Then
sql = sql & " and 鲜花编号='" & txtid.Text & "'"
End If
If txtname.Text <> "" Then
sql = sql & " and 鲜花名称='" & txtname.Text & "'"
End If
If txtmoy.Text <> "" Then
sql = sql & " and 价格=" & txtmoy.Text & ""
End If
If txtno.Text <> "" Then
sql = sql & " and 鲜花数量=" & txtno.Text & ""
End If
If Combo1.Text <> "" Then
sql = sql & " and 送花原因='" & Combo1.Text & "'"
End If
Set Rs = search(sql)
Set DataGrid1.DataSource = Rs
End Sub
Private Sub Form_Load()
Call showskin(Skin1, hwnd)
Set Rs = search("select distinct 送花原因 from floweryy")
Rs.MoveNext
While Not Rs.EOF
Combo1.AddItem Rs.Fields("送花原因").Value
Rs.MoveNext
Wend
Set Rs = search("select 鲜花编号,鲜花名称,送花原因,价格,鲜花数量,进货日期 from floweryy")
Set DataGrid1.DataSource = Rs
End Sub
Private Sub Command1_Click()
On Error Resume Next
Rs.MoveFirst
If Rs.BOF Then
MsgBox "您正在查看的是第一条数据"
End If
End Sub
Private Sub Command6_Click()
On Error Resume Next
Rs.MoveLast
If Rs.EOF Then
MsgBox "您正在查看的是最后一条数据"
End If
End Sub
Private Sub Command7_Click()
On Error Resume Next
Rs.MoveNext
If Rs.EOF Then
MsgBox "您正在查看的是最后一条数据"
Rs.MoveLast
End If
End Sub
Private Sub Command8_Click()
On Error Resume Next
Rs.MovePrevious
If Rs.BOF Then
MsgBox "您正在查看的是第一条数据"
Rs.MoveFirst
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -