【VB开源代码栏目提醒】:以下是网学会员为您推荐的VB开源代码-房台列表.frm,希望本篇文章对您学习有所帮助。
VERSION 5.00
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form FTLB
Caption = "房台
列表"
ClientHeight = 6600
ClientLeft = 60
ClientTop = 345
ClientWidth = 9885
LinkTopic = "Form1"
ScaleHeight = 6600
ScaleWidth = 9885
StartUpPosition = 3 'Windows Default
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3480
Top = 6120
Width = 3255
_ExtentX = 5741
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Pass
word = ""
RecordSource = ""
Caption = "单击两边箭头移动记录"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command1
Caption = "退出"
Height = 375
Left = 8160
TabIndex = 1
Top = 6060
Width = 1695
End
Begin VB.Frame Frame1
Caption = "房台详细信息"
Height = 5895
Left = 0
TabIndex = 0
Top = 0
Width = 9855
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "房台列表.frx":0000
Height = 5475
Left = 180
TabIndex = 2
Top = 300
Width = 9555
_ExtentX = 16854
_ExtentY = 9657
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
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 Column01
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
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
End
End
Attribute
VB_Name = "FTLB"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim myRecord As ADODB.Recordset
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Form_Load()
Set myRecord = New ADODB.Recordset
myRecord.CursorLocation = adUseClient
myRecord.Open "select 房台编号,房台名称,餐厅名称,房台类型名称,房台状态,顾客数量 from 房台状态信息 ", dbConn, adOpenStatic, adLockOpti
mistic, adCmdText
Set Adodc1.Recordset = myRecord
Set DataGrid1.DataSource = myRecord
End Sub