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

📄 门票修改.frm

📁 浴馆管理软件(包括IC卡的操作、动态库的调用等内容)
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmmenpiao 
   Caption         =   "门票修改"
   ClientHeight    =   3195
   ClientLeft      =   4095
   ClientTop       =   2010
   ClientWidth     =   4680
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   2760
      Top             =   120
      Visible         =   0   'False
      Width           =   1920
      _ExtentX        =   3387
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      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=信息库.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=信息库.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "门票表"
      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.CommandButton Command2 
      Caption         =   "确  定"
      Height          =   495
      Left            =   3360
      TabIndex        =   3
      Top             =   2160
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确  定"
      Height          =   495
      Left            =   3360
      TabIndex        =   2
      Top             =   600
      Width           =   1215
   End
   Begin VB.Frame Frame2 
      Caption         =   "女票"
      Height          =   1335
      Left            =   240
      TabIndex        =   1
      Top             =   1680
      Width           =   2895
      Begin VB.TextBox Text4 
         DataField       =   "女晚"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   1440
         TabIndex        =   11
         Top             =   840
         Width           =   1215
      End
      Begin VB.TextBox Text3 
         DataField       =   "女白"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   1440
         TabIndex        =   10
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "女-晚票(7:00-18:00):"
         Height          =   375
         Left            =   120
         TabIndex        =   7
         Top             =   840
         Width           =   1215
      End
      Begin VB.Label Label5 
         Caption         =   "女-白票(7:00-18:00):"
         Height          =   375
         Left            =   120
         TabIndex        =   6
         Top             =   240
         Width           =   1215
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "男票"
      Height          =   1335
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   2895
      Begin VB.TextBox Text2 
         DataField       =   "男晚"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   1440
         TabIndex        =   9
         Top             =   840
         Width           =   1215
      End
      Begin VB.TextBox Text1 
         DataField       =   "男白"
         DataSource      =   "Adodc1"
         Height          =   375
         Left            =   1440
         TabIndex        =   8
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label2 
         Caption         =   "男-晚票(18:00-7:00):"
         Height          =   375
         Left            =   120
         TabIndex        =   5
         Top             =   840
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "男-白票(7:00-18:00):"
         Height          =   375
         Left            =   120
         TabIndex        =   4
         Top             =   240
         Width           =   1215
      End
   End
End
Attribute VB_Name = "frmmenpiao"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim msg As String
If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "") Then
  msg = MsgBox("对不起,您必须输入入场票!", vbOKCancel, "错误!")
Else
     
Adodc1.Recordset.Update
MsgBox "修改成功!", vbInformation, "提示"
End If

End Sub

Private Sub Command2_Click()
Dim msg As String
If (Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "") Then
  msg = MsgBox("对不起,您必须输入入场票!", vbOKCancel, "错误!")
Else
     
Adodc1.Recordset.Update
MsgBox "修改成功!", vbInformation, "提示"
End If
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
   MsgBox "请输入数字", vbInformation, "提示"
   KeyAscii = 0
   
End If
End Sub



Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
   MsgBox "请输入数字", vbInformation, "提示"
   KeyAscii = 0
   
End If
End Sub



Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
   MsgBox "请输入数字", vbInformation, "提示"
   KeyAscii = 0
   
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then
   MsgBox "请输入数字", vbInformation, "提示"
   KeyAscii = 0
   
End If
End Sub

⌨️ 快捷键说明

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