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

📄 addgroup.frm

📁 本套软件适用于手机等用户、培训机构等单位的教学管理软件。
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form addgroup 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "添加联系组"
   ClientHeight    =   2535
   ClientLeft      =   3825
   ClientTop       =   4080
   ClientWidth     =   3840
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   ScaleHeight     =   2535
   ScaleWidth      =   3840
   Begin VB.ComboBox Combo1 
      DataSource      =   "Adodc1"
      Height          =   300
      Left            =   6360
      TabIndex        =   4
      Text            =   "Combo1"
      Top             =   3240
      Visible         =   0   'False
      Width           =   1695
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   6600
      Top             =   3720
      Visible         =   0   'False
      Width           =   1695
      _ExtentX        =   2990
      _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=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=txlxt;Data Source=."
      OLEDBString     =   "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=txlxt;Data Source=."
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   "sa"
      Password        =   ""
      RecordSource    =   "Grouping"
      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          =   375
      Left            =   2040
      TabIndex        =   3
      Top             =   1440
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   480
      TabIndex        =   2
      Top             =   1440
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1560
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   840
      Width           =   1575
   End
   Begin VB.Label Label2 
      Caption         =   "添加联系组"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1200
      TabIndex        =   5
      Top             =   240
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "分组名称"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   600
      TabIndex        =   0
      Top             =   900
      Width           =   855
   End
End
Attribute VB_Name = "addgroup"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command1_Click()
If Trim(Text1.Text) = "" Then
MsgBox "请输入联系组!", vbOKOnly + vbExclamation, "添加联系组"
Exit Sub
End If

Adodc1.Recordset.MoveFirst
While Not Adodc1.Recordset.EOF
  If Adodc1.Recordset.Fields("Group_Name").Value = Trim(Text1.Text) Then
  MsgBox "该组已经存在!", vbOKOnly + vbExclamation, "添加联系组"
  Exit Sub
  Else
  Adodc1.Recordset.MoveNext
  End If
  Wend
  Adodc1.Recordset.AddNew
  Adodc1.Recordset.Fields("Group_Name") = Trim(Text1.Text)
Adodc1.Recordset.Update
MsgBox "添加成功!", vbOKOnly + vbExclamation, "添加联系组"
Text1.Text = ""
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
grouping.Show 1
End Sub

Private Sub Form_Load()
Text1.Text = ""
End Sub

⌨️ 快捷键说明

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