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

📄 frmmoney.frm

📁 图书管理系统 欢迎大家来使用 谢谢!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmmoney 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   4740
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4740
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "返   回 "
      Height          =   495
      Left            =   3000
      TabIndex        =   5
      Top             =   2400
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确   定"
      Height          =   495
      Left            =   360
      TabIndex        =   4
      Top             =   2400
      Width           =   1215
   End
   Begin VB.TextBox Text2 
      Alignment       =   1  'Right Justify
      Height          =   375
      Left            =   1920
      TabIndex        =   3
      Top             =   1800
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Alignment       =   1  'Right Justify
      Height          =   375
      Left            =   1920
      TabIndex        =   1
      Top             =   1080
      Width           =   1095
   End
   Begin VB.Label Label5 
      Caption         =   "元"
      Height          =   255
      Index           =   1
      Left            =   3120
      TabIndex        =   9
      Top             =   1920
      Width           =   375
   End
   Begin VB.Label Label5 
      Caption         =   "元"
      Height          =   255
      Index           =   0
      Left            =   3120
      TabIndex        =   8
      Top             =   1200
      Width           =   375
   End
   Begin VB.Label Label4 
      Height          =   255
      Left            =   1440
      TabIndex        =   7
      Top             =   480
      Width           =   855
   End
   Begin VB.Label Label3 
      Caption         =   "你已欠费:"
      Height          =   255
      Left            =   480
      TabIndex        =   6
      Top             =   480
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "找回:"
      Height          =   255
      Left            =   1080
      TabIndex        =   2
      Top             =   1800
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "交罚金:"
      Height          =   255
      Left            =   1080
      TabIndex        =   0
      Top             =   1080
      Width           =   975
   End
End
Attribute VB_Name = "Frmmoney"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Money As Single

Private Sub Command1_Click()

If Money > Text1.Text Then
MsgBox "你交的罚金不够,请再交!"
Else
Text2.Text = Text1.Text - Money


Open_Student_message
Do While cnn.EOF = False
If cnn.EOF = True Then
Exit Do
End If
If cnn.Fields(0).Value = student_ic Then
cnn.Fields(6).Value = 0
cnn.Update
MsgBox "sdfsdf"
Exit Do
End If
cnn.MoveNext
Loop



Open_book_money
Do While cnn.EOF = False
If cnn.EOF = True Then
Exit Do
End If
If cnn.Fields(0).Value = student_ic Then
cnn.Delete
cnn.Update
End If
cnn.MoveNext
Loop

End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Open_Student_message
Do While cnn.EOF = False
If cnn.EOF = True Then
Exit Do
End If
If cnn.Fields(0).Value = student_ic Then
Money = cnn.Fields(6).Value
Label4.Caption = cnn.Fields(6).Value & "元"
Exit Sub
End If
cnn.MoveNext
Loop
End Sub

⌨️ 快捷键说明

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