?? 打印.frm
字號:
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=電話計(jì)費(fèi)管理系統(tǒng)"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=電話計(jì)費(fèi)管理系統(tǒng)"
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=電話計(jì)費(fèi)管理系統(tǒng)"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=電話計(jì)費(fèi)管理系統(tǒng)"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 話費(fèi)信息庫"
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=電話計(jì)費(fèi)管理系統(tǒng)"
OLEDBString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=電話計(jì)費(fèi)管理系統(tǒng)"
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 = "請輸入要打印或者查看的手機(jī)號碼:"
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 "您還沒有輸入手機(jī)號碼!", 16, "錯誤"
Else
If Option1.Value Then
sql = "select * from 收款額 where 手機(jī)號碼='" & Text1.Text & "'"
Adodc4.RecordSource = sql
Set DataGrid1.DataSource = Adodc4
DataGrid1.ClearFields
DataGrid1.ReBind
Adodc4.Refresh
End If
If Option2.Value Then
sql = "select * from 話費(fèi)信息庫 where 手機(jī)號碼='" & 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 手機(jī)號='" & 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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -