VERSION 5.00
Object = "{BEEECC20-4D5F-4F8B-BFDC-5D9B6FBDE09D}#1.0#0"; "vsFlex8.ocx"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 6585
ClientLeft = 60
ClientTop = 465
ClientWidth = 10440
LinkTopic = "Form1"
ScaleHeight = 6585
ScaleWidth = 10440
StartUpPosition = 3 '窗口缺省
Begin Command2
Caption = "模糊搜索(按姓名,生日)"
Height = 615
Left = 5760
TabIndex = 4
Top = 5400
Width = 1695
End
Begin VB.TextBox Text1
Height = 615
Left = 2880
TabIndex = 3
Top = 5400
Width = 1575
End
Begin VSFlex8Ctl.VSFlexGrid VSFlexGrid1
Height = 2775
Left = 2040
TabIndex = 2
Top = 1680
Width = 7575
_cx = 13361
_cy = 4895
Appearance = 1
BorderStyle = 1
Enabled = -1 'True
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MousePointer = 0
BackColor = -2147483643
ForeColor = -2147483640
BackColorFixed = -2147483633
ForeColorFixed = -2147483630
BackColorSel = -2147483635
ForeColorSel = -2147483634
BackColorBkg = -2147483636
BackColorAlternate= -2147483643
GridColor = -2147483633
GridColorFixed = -2147483632
TreeColor = -2147483632
FloodColor = 192
SheetBorder = -2147483642
FocusRect = 1
HighLight = 1
AllowSelection = -1 'True
AllowBigSelection= -1 'True
AllowUserResizing= 0
SelectionMode = 0
GridLines = 1
GridLinesFixed = 2
GridLineWidth = 1
Rows = 50
Cols = 10
FixedRows = 1
FixedCols = 1
RowHeightMin = 0
RowHeightMax = 0
ColWidthMin = 0
ColWidthMax = 0
ExtendLastCol = 0 'False
FormatString = ""
ScrollTrack = 0 'False
ScrollBars = 3
ScrollTips = 0 'False
MergeCells = 0
MergeCompare = 0
AutoResize = -1 'True
AutoSizeMode = 0
AutoSearch = 0
AutoSearchDelay = 2
MultiTotals = -1 'True
SubtotalPosition= 1
OutlineBar = 0
OutlineCol = 0
Ellipsis = 0
ExplorerBar = 0
PicturesOver = 0 'False
FillStyle = 0
RightToLeft = 0 'False
PictureType = 0
TabBehavior = 0
OwnerDraw = 0
Editable = 0
ShowComboButton = 1
WordWrap = 0 'False
TextStyle = 0
TextStyleFixed = 0
OleDragMode = 0
OleDropMode = 0
DataMode = 0
VirtualData = -1 'True
DataMember = ""
ComboSearch = 3
AutoSizeMouse = -1 'True
FrozenRows = 0
FrozenCols = 0
AllowUserFreezing= 0
BackColorFrozen = 0
ForeColorFrozen = 0
WallPaperAlignment= 9
AccessibleName = ""
AccessibleDescription= ""
AccessibleValue = ""
AccessibleRole = 24
End
Begin Command1
Caption = "add"
Height = 375
Left = 5760
TabIndex = 1
Top = 4680
Width = 1815
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "客户信息管理"
BeginProperty Font
Name = "宋体"
Size = 36
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 720
Left = 3480
TabIndex = 0
Top = 480
Width = 4320
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Form2.Show vbModal
End Sub
Private Sub Command2_Click()
Call search
End Sub
Private Sub Form_Load()
Call init
End Sub
Sub init()
strSQL = "select * from [user] order by qian asc"
Set rs = conn.Execute(strSQL)
Set VSFlexGrid1.DataSource = rs
rs.Close
End Sub
Sub search()
strSQL = "select * from [user] where [name] like '%" & Text1.Text & "%' or birthday like '%" & Text1.Text & "%' order by qian asc"
Set rs = conn.Execute(strSQL)
Set VSFlexGrid1.DataSource = rs
rs.Close
End Sub