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

📄 form6.frm

📁 为一个单位的老师写的小工具
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form Form6 
   Caption         =   "定制查询的结果集"
   ClientHeight    =   3690
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form6"
   ScaleHeight     =   3690
   ScaleWidth      =   4680
   StartUpPosition =   3  'Windows Default
   Begin MSAdodcLib.Adodc Adodc3 
      Height          =   375
      Left            =   480
      Top             =   3240
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "全部清除"
      Height          =   495
      Left            =   1560
      TabIndex        =   4
      Top             =   2160
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "确认保存"
      Height          =   495
      Left            =   3120
      TabIndex        =   3
      Top             =   3000
      Width           =   1335
   End
   Begin VB.ListBox List2 
      Height          =   2205
      Left            =   3000
      TabIndex        =   2
      Top             =   720
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "=>"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   24
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   555
      Left            =   1560
      TabIndex        =   1
      Top             =   1080
      Width           =   1215
   End
   Begin VB.ListBox List1 
      Height          =   2205
      Left            =   120
      TabIndex        =   0
      Top             =   720
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "请选择您所希望的显示条目,然后点击   =>  按钮"
      Height          =   375
      Left            =   120
      TabIndex        =   5
      Top             =   120
      Width           =   4215
   End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim count1 As Integer

Private Sub Command1_Click()
    maxCount = 10
    If count1 < maxCount Then
    List2.AddItem Trim(List1.Text)
    
    count1 = count1 + 1
    End If

End Sub
Private Sub Command2_Click()
On Error GoTo eee
   For i = 0 To count1 - 1
   List2.RemoveItem (0)
   Next i
   count1 = 0
   countA = 0
 GoTo n2
eee:
 
    MsgBox Err.Description
n2:
End Sub

Private Sub Command3_Click()
   For i = 0 To count1 - 1
      itemC(i) = List2.List(i)
   Next i
   countA = count1
   For i = 0 To count1 - 1
      Print itemC(i)
      Print countA
   Next i
   
    
End Sub

Private Sub Form_Load()
    
    Adodc3.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\招聘信息.mdb;Persist Security Info=False"
    Adodc3.RecordSource = "select  c   from tblC   "
    Adodc3.Refresh
    Dim cooon As Integer
    cooon = Adodc3.Recordset.Fields(0)
    
    Adodc3.RecordSource = "select  名称   from tblCol   "
    Adodc3.Refresh
    For j1 = 0 To cooon - 1
        List1.AddItem Trim(Adodc3.Recordset.Fields(0))
        Adodc3.Recordset.MoveNext
    Next j1
    
    count1 = 0
   ' Dim Name As Variant
   ' Name = Array("姓名", "姓名", "性别", "民族", "出生年月", "毕业院校", "最后学历", "专业", "工作经历", "备注")
   ' For j1 = 0 To 9
   '     List1.AddItem Trim(Name(j1))
   ' Next j1
    countA = 0
    
End Sub

Private Sub List1_Click()
'MsgBox List1.Columns & "+" & List1. & "+" & List1.Container


 
End Sub

⌨️ 快捷键说明

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