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

📄 frmdynamic.frm

📁 水质模糊综合评价系统 水质模糊综合评价系统 水质模糊综合评价系统
💻 FRM
📖 第 1 页 / 共 5 页
字号:
            BeginProperty Font 
               Name            =   "宋体"
               Size            =   9
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   375
            Index           =   4
            Left            =   120
            MaxLength       =   50
            TabIndex        =   6
            Text            =   "Text2"
            Top             =   2640
            Width           =   1335
         End
      End
      Begin VB.CommandButton Command1 
         Caption         =   "添加表 "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   1560
         Picture         =   "FrmDynamic.frx":3D86
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   4920
         Width           =   1575
      End
      Begin VB.CommandButton Command4 
         Caption         =   "添加标准  "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   3840
         Picture         =   "FrmDynamic.frx":4CB2
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   4920
         Width           =   1935
      End
      Begin VB.CommandButton Command5 
         Caption         =   "浏览添加表 "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   6480
         Picture         =   "FrmDynamic.frx":5BDE
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   4920
         Width           =   1935
      End
      Begin MSDataGridLib.DataGrid DataGrid2 
         Height          =   3135
         Left            =   960
         TabIndex        =   59
         Top             =   5760
         Width           =   7455
         _ExtentX        =   13150
         _ExtentY        =   5530
         _Version        =   393216
         AllowUpdate     =   0   'False
         BackColor       =   12648447
         DefColWidth     =   67
         HeadLines       =   1
         RowHeight       =   15
         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     =   2
         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
         SplitCount      =   1
         BeginProperty Split0 
            BeginProperty Column00 
            EndProperty
            BeginProperty Column01 
            EndProperty
         EndProperty
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "评价标准表名称: "
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   1800
         TabIndex        =   17
         Top             =   360
         Width           =   2055
      End
   End
   Begin MSComctlLib.TabStrip TabStrip1 
      Height          =   10335
      Left            =   600
      TabIndex        =   0
      Top             =   0
      Width           =   10095
      _ExtentX        =   17806
      _ExtentY        =   18230
      MultiRow        =   -1  'True
      _Version        =   393216
      BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
         NumTabs         =   4
         BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "浏览评级标准"
            Key             =   "ll"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "添加评级标准 "
            Key             =   "tjbz"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "水质评价"
            Key             =   "pj"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab4 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "结果查询"
            Key             =   "jgcx"
            ImageVarType    =   2
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
End
Attribute VB_Name = "FrmDynamic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents rs As Recordset
Attribute rs.VB_VarHelpID = -1
Dim tablename As String, tname As String
Dim i As Integer
Dim k As Integer

Private Sub Command10_Click() '查询记录
tablename = Text7.Text
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & App.Path & "\db1.mdb;" & "Persist Security Info=False;"
  Set rs = New Recordset
If Text7 = "" Or Text8 = "" Then
   MsgBox "请把查询条件输入完整!", vbInformation
   Exit Sub
Else
  
If Option3.Value = True Then
'按采取时间查询

Set rs = New Recordset
rs.Open "select * from " & tablename & " where 采样日期 ='" & Text8 & "'", db, adOpenStatic, adLockOptimistic

If (rs.EOF And rs.BOF) Then
        MsgBox "采样日期不存在,日期格式例如2001-2-2", vbCritical, "提示"
         Text8 = ""
        Exit Sub
     ElseIf Not (rs.BOF And rs.EOF) Then
     Set DataGrid5.DataSource = rs
  End If
ElseIf Option4.Value = True Then         '按采取地点查询
      rs.Open "select * from " & tablename & " where 采样地点='" & Text8 & "'", db, adOpenStatic, adLockOptimistic
      If (rs.EOF And rs.BOF) Then
        MsgBox "采样地点不存在", vbCritical, "提示"
         Text8 = ""
        Exit Sub
    ElseIf Not (rs.BOF And rs.EOF) Then
    Set DataGrid5.DataSource = rs
    End If
     End If
       End If
End Sub
Private Sub Command11_Click()
Unload Me
End Sub
Private Sub Command12_Click()
FrmDynamicTj.Show
End Sub
Private Sub Form_Unload(Cancel As Integer)
 On Error Resume Next
 rs.Close
 Set rs = Nothing
 Set frmdt = Nothing
End Sub
Private Sub Command7_Click()
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & App.Path & "\db1.mdb;" & "Persist Security Info=False;"
If Combo2.Text = "" Then
MsgBox "请输入要浏览表的名称", vbExclamation + vbInformation, "提示"
Exit Sub
Else
Set rs = New Recordset
rs.Open "select * from 标准名称表 where 评价标准表='" & Combo2.Text & "' or 评价结果表1='" & Combo2.Text & "' or 评价结果表2='" & Combo2.Text & "'", db, adOpenStatic, adLockOptimistic
If (rs.BOF And rs.EOF) Then
MsgBox "要浏览的表不存在,请核对后再输入!"
Combo2.Text = ""
Exit Sub
Else
rs.Close
rs.Open " select * from " & Combo2.Text & "", db, adOpenStatic, adLockOptimistic
Set DataGrid4.DataSource = rs
End If
End If

End Sub

Private Sub Command9_Click()
tablename = CStr(Text7.Text)
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & App.Path & "\db1.mdb;" & "Persist Security Info=False;"
Set rs = New Recordset
If Text7 = "" Then
MsgBox "请输入要浏览的表名称!", vbInformation, "提示"
Exit Sub
Else
rs.Open "select * from " & tablename & "", db, adOpenStatic, adLockOptimistic
Set DataGrid5.DataSource = rs
End If
End Sub

Private Sub Form_Load()
Command10.Enabled = False
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & App.Path & "\db1.mdb;" & "Persist Security Info=False;"
Set rs = New Recordset
rs.Open "select * from 标准名称表", db, adOpenStatic, adLockOptimistic
Set DataGrid1.DataSource = rs
Me.AutoRedraw = True
Pic1.Visible = False
Pic1.BorderStyle = 0
Pic1.AutoSize = True
Pic1.Picture = LoadPicture(App.Path + "\03.gif")
BackG1 Me, Pic1
Frame7.Visible = True
Frame1.Visible = False
Frame4.Visible = False
Frame8.Visible = False

Text1 = ""
Text5 = ""
Text6 = ""
Text2(0) = ""
Text2(1) = ""
Text2(2) = ""
Text2(3) = ""
Text2(4) = ""
Text3(0) = ""
Text3(1) = ""
Text3(2) = ""
Text3(3) = ""
Text3(4) = ""
Text3(5) = ""
Text3(6) = ""
Text3(7) = ""
Text3(8) = ""
Text3(9) = ""
Text4(0) = ""
Text4(1) = ""
Text4(2) = ""
Text4(3) = ""
Text4(4) = ""
Text4(5) = ""
Text4(6) = ""
Text4(7) = ""
Text4(8) = ""
Text4(9) = ""
End Sub

Private Sub TabStrip1_Click()

Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "Provider=Microso

⌨️ 快捷键说明

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