📄 frm打印信封.frm
字号:
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 Column17
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 Column18
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 Column19
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
ColumnWidth = 1365.165
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
BeginProperty Column05
ColumnWidth = 2085.166
EndProperty
BeginProperty Column06
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
ColumnWidth = 2085.166
EndProperty
BeginProperty Column08
ColumnWidth = 2085.166
EndProperty
BeginProperty Column09
ColumnWidth = 2085.166
EndProperty
BeginProperty Column10
ColumnWidth = 2085.166
EndProperty
BeginProperty Column11
ColumnWidth = 2085.166
EndProperty
BeginProperty Column12
ColumnWidth = 2085.166
EndProperty
BeginProperty Column13
ColumnWidth = 2085.166
EndProperty
BeginProperty Column14
ColumnWidth = 2085.166
EndProperty
BeginProperty Column15
ColumnWidth = 2085.166
EndProperty
BeginProperty Column16
ColumnWidth = 2085.166
EndProperty
BeginProperty Column17
ColumnWidth = 2085.166
EndProperty
BeginProperty Column18
ColumnWidth = 2085.166
EndProperty
BeginProperty Column19
ColumnWidth = 2085.166
EndProperty
EndProperty
End
End
Begin VB.Frame Frame2
Caption = "选择所要打印信封的客户信息"
ForeColor = &H00800080&
Height = 735
Left = 0
TabIndex = 0
Top = 120
Width = 6255
Begin VB.ComboBox Combo1
Height = 300
ItemData = "frm打印信封.frx":0015
Left = 1080
List = "frm打印信封.frx":002B
Style = 2 'Dropdown List
TabIndex = 4
Top = 240
Width = 1335
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "frm打印信封.frx":0065
Left = 2520
List = "frm打印信封.frx":007B
Style = 2 'Dropdown List
TabIndex = 3
Top = 240
Width = 735
End
Begin VB.TextBox Text1
Height = 300
Left = 3360
TabIndex = 2
Top = 240
Width = 1815
End
Begin VB.CommandButton Command3
Caption = "确定"
Height = 350
Left = 5280
TabIndex = 1
Top = 240
Width = 855
End
Begin VB.Label Label1
Caption = "选择条件"
Height = 255
Left = 240
TabIndex = 5
Top = 360
Width = 855
End
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 360
Top = 4440
Visible = 0 'False
Width = 1935
_ExtentX = 3413
_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= 2
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "FILE NAME=D:\桌面\新建文件夹\客户信息表.dsn"
OLEDBString = ""
OLEDBFile = "D:\桌面\新建文件夹\客户信息表.dsn"
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 客户信息表"
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
End
Attribute VB_Name = "frm打印信封"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i
Private Sub Command1_Click()
On Error Resume Next
If i = 0 Then
DataE1.rsCommand1.Open "select * from 客户信息表 where " + Combo1.Text + " " + Combo2.Text + " '" + Text1.Text + "'"
If DataE1.rsCommand1.RecordCount > 0 Then
DR1_gztdy.Show
Else
End If
ElseIf i = 1 Then
DataE1.rsCommand1.Open "select * from 客户信息表 where " + Combo1.Text + " like '%" + Text1.Text + "%'"
If DataE1.rsCommand1.RecordCount > 0 Then
DR1_gztdy.Show
Else
End If
Else
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
On Error Resume Next
If i = 0 Then
Adodc1.RecordSource = "select * from 客户信息表 where " + Combo1.Text + " " + Combo2.Text + " '" + Text1.Text + "'"
Adodc1.Refresh
Command1.Enabled = True
ElseIf i = 1 Then
Adodc1.RecordSource = "select * from 客户信息表 where " + Combo1.Text + " like '%" + Trim(Text1.Text) + "%'"
Adodc1.Refresh
Command1.Enabled = True
Else
End If
End Sub
Private Sub Form_Load()
On Error Resume Next
frm主窗体.StatusBar1.Panels(1) = Me.Caption
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm主窗体.StatusBar1.Panels(1) = "杨扬工作室 作者:小杨"
End Sub
Private Sub Combo2_Click()
If Combo2.Text <> " Like" Then
i = 0
ElseIf Combo2.Text = " Like" Then
i = 1
Else
End If
Text1.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -