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

📄 入住信息.frm

📁 用vb做的。还没有做完。不过整个结构已经很清晰了。有兴趣的继续做。
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form2 
   Caption         =   "入住信息"
   ClientHeight    =   7005
   ClientLeft      =   5070
   ClientTop       =   2055
   ClientWidth     =   5520
   LinkTopic       =   "Form2"
   ScaleHeight     =   7005
   ScaleWidth      =   5520
   Begin VB.Frame Frame1 
      Caption         =   "入住信息"
      Height          =   6615
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5295
      Begin MSDataGridLib.DataGrid DataGrid1 
         Bindings        =   "入住信息.frx":0000
         Height          =   3975
         Left            =   120
         TabIndex        =   10
         Top             =   1800
         Width           =   4935
         _ExtentX        =   8705
         _ExtentY        =   7011
         _Version        =   393216
         AllowUpdate     =   -1  'True
         HeadLines       =   1
         RowHeight       =   15
         FormatLocked    =   -1  'True
         AllowAddNew     =   -1  'True
         AllowDelete     =   -1  'True
         BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ColumnCount     =   3
         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
         BeginProperty Column02 
            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 
               ColumnWidth     =   1395.213
            EndProperty
            BeginProperty Column01 
               ColumnWidth     =   1395.213
            EndProperty
            BeginProperty Column02 
               ColumnWidth     =   2085.166
            EndProperty
         EndProperty
      End
      Begin MSAdodcLib.Adodc Adodc1 
         Height          =   375
         Left            =   240
         Top             =   6000
         Width           =   3375
         _ExtentX        =   5953
         _ExtentY        =   661
         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=F:\程序设计\宿舍管理软件\data\sushe.mdb;Persist Security Info=False"
         OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\程序设计\宿舍管理软件\data\sushe.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.TextBox Text3 
         Height          =   270
         Left            =   4320
         TabIndex        =   9
         Top             =   1320
         Width           =   735
      End
      Begin VB.TextBox Text2 
         Height          =   270
         Left            =   2640
         TabIndex        =   7
         Top             =   1320
         Width           =   975
      End
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   600
         TabIndex        =   5
         Top             =   1320
         Width           =   1215
      End
      Begin VB.CommandButton Command3 
         Caption         =   "查询"
         Height          =   615
         Left            =   3600
         TabIndex        =   3
         Top             =   360
         Width           =   1455
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退房"
         Height          =   615
         Left            =   1920
         TabIndex        =   2
         Top             =   360
         Width           =   1335
      End
      Begin VB.CommandButton Command1 
         Caption         =   "入住"
         Height          =   615
         Left            =   120
         TabIndex        =   1
         Top             =   360
         Width           =   1455
      End
      Begin VB.Label Label3 
         Caption         =   "房号"
         Height          =   255
         Left            =   3840
         TabIndex        =   8
         Top             =   1320
         Width           =   495
      End
      Begin VB.Label Label2 
         Caption         =   "姓名"
         Height          =   255
         Left            =   2040
         TabIndex        =   6
         Top             =   1320
         Width           =   495
      End
      Begin VB.Label Label1 
         Caption         =   "学号"
         Height          =   255
         Left            =   120
         TabIndex        =   4
         Top             =   1320
         Width           =   495
      End
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "" Then
 MsgBox "您没有输入学号,姓名,宿舍的信息有错误 一定要填写正确!"
Text1.Text = ""
Text1.SetFocus
Exit Sub
End If
Dim i%
i = Len(Text1.Text)
If i <> 9 Then
    MsgBox "您没有输入学号,姓名,宿舍的信息有错误 一定要填写正确!"
    Text1.Text = ""
    Text1.SetFocus
    Exit Sub
End If

'判断学号不能重复

Adodc1.Recordset.AddNew
Adodc1.Recordset.Fields("学号").Value = Trim(Text1.Text)
Adodc1.Recordset.Fields("姓名").Value = Trim(Text2.Text)
Adodc1.Recordset.Fields("宿舍").Value = Trim(Text3.Text)
Adodc1.Recordset.Update
End Sub

Private Sub Command2_Click()
Form4.Show
End Sub

Private Sub Command3_Click()
Form5.Show
End Sub

⌨️ 快捷键说明

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