⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frm2.frm

📁 客运售票系统vb+access
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Caption         =   "刷新(&R)"
         Height          =   300
         Left            =   3521
         TabIndex        =   4
         Top             =   0
         Width           =   1095
      End
      Begin VB.CommandButton cmdDelete 
         Caption         =   "删除(&D)"
         Height          =   300
         Left            =   2367
         TabIndex        =   3
         Top             =   0
         Width           =   1095
      End
      Begin VB.CommandButton cmdUpdate 
         Caption         =   "更新(&U)"
         Height          =   300
         Left            =   1213
         TabIndex        =   2
         Top             =   0
         Width           =   1095
      End
      Begin VB.CommandButton cmdAdd 
         Caption         =   "添加(&A)"
         Height          =   300
         Left            =   59
         TabIndex        =   1
         Top             =   0
         Width           =   1095
      End
   End
   Begin MSAdodcLib.Adodc datPrimaryRS 
      Align           =   2  'Align Bottom
      Height          =   330
      Left            =   0
      Top             =   6000
      Width           =   10395
      _ExtentX        =   18336
      _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=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;"
      OLEDBString     =   "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from 客运售票信息表"
      Caption         =   " "
      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 MSDataListLib.DataCombo DataCombo2 
      Bindings        =   "frm2.frx":0071
      DataField       =   "售票员编号"
      DataSource      =   "datPrimaryRS"
      Height          =   330
      Left            =   5760
      TabIndex        =   20
      Top             =   1080
      Width           =   1575
      _ExtentX        =   2778
      _ExtentY        =   582
      _Version        =   393216
      ListField       =   "user"
      Text            =   "DataCombo1"
   End
   Begin MSAdodcLib.Adodc Adodc2 
      Height          =   330
      Left            =   7440
      Top             =   1920
      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=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from [user]"
      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 MSAdodcLib.Adodc Adodc3 
      Height          =   330
      Left            =   9000
      Top             =   1920
      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=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=kygl.mdb;Persist Security Info=False"
      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 Label10 
      Caption         =   "元"
      Height          =   375
      Left            =   9960
      TabIndex        =   23
      Top             =   480
      Width           =   495
   End
   Begin VB.Label Label9 
      BackColor       =   &H0080FFFF&
      DataField       =   "票价"
      DataSource      =   "Adodc3"
      Height          =   375
      Left            =   8640
      TabIndex        =   22
      Top             =   480
      Width           =   1215
   End
   Begin VB.Label Label8 
      Caption         =   "票价"
      Height          =   375
      Left            =   7560
      TabIndex        =   21
      Top             =   480
      Width           =   975
   End
   Begin VB.Label Label7 
      Caption         =   "售票员编号"
      Height          =   255
      Left            =   4680
      TabIndex        =   19
      Top             =   1080
      Width           =   975
   End
   Begin VB.Label Label6 
      Caption         =   "售票时间"
      Height          =   375
      Left            =   7560
      TabIndex        =   17
      Top             =   1080
      Width           =   975
   End
   Begin VB.Label Label5 
      Caption         =   "班次"
      Height          =   255
      Left            =   4680
      TabIndex        =   15
      Top             =   480
      Width           =   735
   End
   Begin VB.Label Label4 
      Caption         =   "检票口"
      Height          =   375
      Left            =   2280
      TabIndex        =   14
      Top             =   1080
      Width           =   615
   End
   Begin VB.Label Label3 
      Caption         =   "开车时间"
      Height          =   375
      Left            =   2280
      TabIndex        =   12
      Top             =   480
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "类别"
      Height          =   375
      Left            =   360
      TabIndex        =   10
      Top             =   1080
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "编号"
      Height          =   375
      Left            =   360
      TabIndex        =   8
      Top             =   480
      Width           =   615
   End
End
Attribute VB_Name = "frm2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdAdd_Click()

On Error Resume Next

datPrimaryRS.Recordset.AddNew


End Sub

Private Sub cmdClose_Click()
Unload Me
End Sub

Private Sub cmdDelete_Click()
On Error Resume Next

datPrimaryRS.Recordset.Delete
End Sub

Private Sub cmdRefresh_Click()
On Error Resume Next

datPrimaryRS.Refresh
End Sub

Private Sub cmdUpdate_Click()
On Error Resume Next

datPrimaryRS.Recordset.Update
End Sub

Private Sub Command1_Click()
ss = Combo1.Text
ss2 = Text5.Text
datPrimaryRS.RecordSource = "select * from 客运售票信息表 where " + ss + " ='" + ss2 + "'"

datPrimaryRS.Refresh

End Sub

Private Sub Command2_Click()
datPrimaryRS.RecordSource = "select * from 客运售票信息表 "

datPrimaryRS.Refresh
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -