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

📄 frmreturn.frm

📁 一个用vb6.0 编写的 cd出租系统,使用access 数据库
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmreturn 
   BackColor       =   &H00FFC0C0&
   Caption         =   "Return"
   ClientHeight    =   5355
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4905
   Icon            =   "frmreturn.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "frmreturn.frx":0E42
   ScaleHeight     =   5355
   ScaleWidth      =   4905
   StartUpPosition =   3  'Windows Default
   Begin VB.PictureBox piccode 
      BackColor       =   &H00C0C0C0&
      Height          =   495
      Left            =   1800
      ScaleHeight     =   435
      ScaleWidth      =   2475
      TabIndex        =   12
      Top             =   1920
      Width           =   2535
   End
   Begin VB.PictureBox pictitle 
      BackColor       =   &H00C0C0C0&
      Height          =   495
      Left            =   1800
      ScaleHeight     =   435
      ScaleWidth      =   2475
      TabIndex        =   11
      Top             =   1200
      Width           =   2535
   End
   Begin VB.PictureBox picdreturn 
      AutoRedraw      =   -1  'True
      BackColor       =   &H00C0C0C0&
      Height          =   495
      Left            =   1800
      ScaleHeight     =   435
      ScaleWidth      =   2475
      TabIndex        =   10
      Top             =   3360
      Width           =   2535
   End
   Begin VB.PictureBox picdrent 
      AutoRedraw      =   -1  'True
      BackColor       =   &H00C0C0C0&
      Height          =   495
      Left            =   1800
      ScaleHeight     =   435
      ScaleWidth      =   2475
      TabIndex        =   9
      Top             =   2640
      Width           =   2535
   End
   Begin VB.Timer Timer1 
      Interval        =   10
      Left            =   2880
      Top             =   0
   End
   Begin VB.CommandButton cmdcancel 
      Caption         =   "&Cancel"
      Height          =   495
      Left            =   2400
      TabIndex        =   7
      Top             =   4200
      Width           =   1215
   End
   Begin VB.Data Data3 
      Caption         =   "Data3"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   300
      Left            =   2760
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   4800
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.Data Data2 
      Caption         =   "Data2"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   300
      Left            =   1440
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   4800
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   300
      Left            =   120
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   4800
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.CommandButton Cmdreturn 
      Caption         =   "&Return"
      Height          =   495
      Left            =   960
      TabIndex        =   5
      Top             =   4200
      Width           =   1215
   End
   Begin VB.TextBox txtid 
      Height          =   495
      Left            =   1800
      TabIndex        =   4
      Top             =   480
      Width           =   2535
   End
   Begin VB.Label lbltime 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Height          =   495
      Left            =   3840
      TabIndex        =   8
      Top             =   120
      Width           =   1215
   End
   Begin VB.Label lblreturn 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "Date of Return"
      Height          =   495
      Left            =   240
      TabIndex        =   6
      Top             =   3480
      Width           =   1215
   End
   Begin VB.Label lbldate 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "Date of Rental:"
      Height          =   495
      Left            =   240
      TabIndex        =   3
      Top             =   2760
      Width           =   1215
   End
   Begin VB.Label lblcode 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "Video Code:"
      Height          =   495
      Left            =   240
      TabIndex        =   2
      Top             =   2040
      Width           =   1215
   End
   Begin VB.Label lbltitle 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "Video Title:"
      Height          =   495
      Left            =   240
      TabIndex        =   1
      Top             =   1320
      Width           =   1215
   End
   Begin VB.Label lblid 
      BackColor       =   &H00FFC0C0&
      BackStyle       =   0  'Transparent
      Caption         =   "Member ID:"
      Height          =   495
      Left            =   240
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
End
Attribute VB_Name = "frmreturn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdcancel_Click()
Unload Me
End Sub

Private Sub Cmdreturn_Click()
If txtid.Text <> "" Then
    With Data1.Recordset
        .Edit
        !return = Date
        .Update
    End With
    MsgBox "Return Successful!!", vbInformation
    txtid = ""
    pictitle.Cls
    piccode.Cls
    picdrent.Cls
    picdreturn.Cls
Else
    MsgBox "Please enter the member ID!", vbExclamation
End If
End Sub

Private Sub Form_Load()
Data1.DatabaseName = App.Path & "/video.mdb"
Data1.RecordSource = " select * from rent_return"

picdreturn.Print Date
End Sub

Private Sub Timer1_Timer()
lbltime.Caption = Time$
End Sub
Private Sub txtid_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
    Call DisplayName
End If
End Sub

Private Sub DisplayName()
With Data1.Recordset
    .FindFirst ("member_id='" & txtid & "'")
    If .NoMatch = False Then
        pictitle.Print !video_title
        piccode.Print !video_code
        picdrent.Print !borrow
    Else
        MsgBox "Data not found!!!", vbExclamation
        txtid.Text = ""
    End If
End With
End Sub

⌨️ 快捷键说明

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