📄 打印.txt
字号:
Height = 615
Left = 7800
TabIndex = 8
Top = 3720
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "查看"
Height = 615
Left = 7800
TabIndex = 7
Top = 2880
Width = 1455
End
Begin VB.TextBox Text1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5040
TabIndex = 6
Top = 240
Width = 2655
End
Begin VB.Frame Frame1
Caption = "打印类型"
Height = 2655
Left = 7800
TabIndex = 4
Top = 120
Width = 1455
End
Begin MSAdodcLib.Adodc Adodc3
Height = 330
Left = 2400
Top = 5160
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
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=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=电话计费管理系统"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=电话计费管理系统"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 客户受理表"
Caption = "Adodc3"
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 = 1200
Top = 5160
Visible = 0 'False
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=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=电话计费管理系统"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=电话计费管理系统"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 话费信息库"
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
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 0
Top = 5160
Visible = 0 'False
Width = 1200
_ExtentX = 2117
_ExtentY = 582
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=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=电话计费管理系统"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=电话计费管理系统"
OLEDBFile = ""
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
Begin VB.Label Label1
Caption = "请输入要打印或者查看的手机号码:"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 0
TabIndex = 5
Top = 240
Width = 4935
End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim sql As String
If Text1.Text = "" Then
MsgBox "您还没有输入手机号码!", 16, "错误"
Else
If Option1.Value Then
sql = "select * from 收款额 where 手机号码='" & Text1.Text & "'"
Adodc4.RecordSource = sql
Set DataGrid1.DataSource = Adodc4
DataGrid1.ClearFields
DataGrid1.ReBind
Adodc4.Refresh
End If
If Option2.Value Then
sql = "select * from 话费信息库 where 手机号码='" & Text1.Text & "'"
Adodc5.RecordSource = sql
Set DataGrid1.DataSource = Adodc5
DataGrid1.ClearFields
DataGrid1.ReBind
Adodc5.Refresh
End If
If Option3.Value Then
sql = "select * from 客户受理表 where 手机号='" & Text1.Text & "'"
Adodc6.RecordSource = sql
Set DataGrid1.DataSource = Adodc6
DataGrid1.ClearFields
DataGrid1.ReBind
Adodc6.Refresh
End If
End If
End Sub
Private Sub Command2_Click()
Printer.Print DataGrid1
End Sub
Private Sub Command3_Click()
Form3.Hide
End Sub
Private Sub Form_Load()
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub Option1_Click()
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub Option2_Click()
Set DataGrid1.DataSource = Adodc2
End Sub
Private Sub Option3_Click()
Set DataGrid1.DataSource = Adodc3
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -