📄 printticket.frm
字号:
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 840
TabIndex = 11
Top = 960
Width = 1575
End
Begin VB.Label Label11
BackStyle = 0 'Transparent
Caption = $"printticket.frx":7D0E
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 0
TabIndex = 10
Top = 3360
Width = 11055
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "到达时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8520
TabIndex = 9
Top = 2760
Width = 1215
End
Begin VB.Label Label9
BackStyle = 0 'Transparent
Caption = "起飞时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 4560
TabIndex = 8
Top = 2760
Width = 1215
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "价格"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 0
TabIndex = 7
Top = 2760
Width = 1215
End
Begin VB.Line Line1
X1 = 1080
X2 = 4560
Y1 = 2040
Y2 = 2040
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "座位号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 8520
TabIndex = 6
Top = 1800
Width = 1215
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "等级"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 6360
TabIndex = 5
Top = 1800
Width = 1215
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "机次"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 8520
TabIndex = 4
Top = 960
Width = 1215
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "客户类型"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5880
TabIndex = 3
Top = 960
Width = 1215
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "客户"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3000
TabIndex = 2
Top = 960
Width = 1455
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "票号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 0
TabIndex = 1
Top = 960
Width = 1095
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "机 票"
BeginProperty Font
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 4080
TabIndex = 0
Top = 0
Width = 3375
End
End
Attribute VB_Name = "printticket"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim rs As ADODB.Recordset
Dim con As ADODB.Connection
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=ticket;Data Source=studenta10"
con.Open
Set rs.ActiveConnection = con
rs.Source = "select * from ticketinfo where ticketno='03052714294337'"
rs.Open
Label12.Caption = rs.Fields("ticketno")
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -