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

📄 导游_景点查询.frm

📁 一个小型的旅行社管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 导游景点查询 
   Caption         =   "导游-->景点查询"
   ClientHeight    =   6330
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9690
   LinkTopic       =   "Form1"
   Picture         =   "导游_景点查询.frx":0000
   ScaleHeight     =   6330
   ScaleWidth      =   9690
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox Text6 
      Height          =   2175
      Left            =   6120
      TabIndex        =   9
      Top             =   2760
      Width           =   2535
   End
   Begin VB.TextBox Text5 
      Height          =   375
      Left            =   2280
      TabIndex        =   8
      Top             =   4440
      Width           =   2055
   End
   Begin VB.TextBox Text4 
      Height          =   375
      Left            =   2280
      TabIndex        =   7
      Top             =   3840
      Width           =   2055
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   2280
      TabIndex        =   6
      Top             =   3240
      Width           =   2055
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2280
      TabIndex        =   5
      Top             =   2760
      Width           =   2055
   End
   Begin VB.CommandButton 取消 
      Caption         =   "取消"
      Height          =   375
      Left            =   7920
      TabIndex        =   3
      Top             =   1320
      Width           =   855
   End
   Begin VB.CommandButton 查询 
      Caption         =   "查询"
      Height          =   375
      Left            =   7920
      TabIndex        =   2
      Top             =   720
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   5640
      TabIndex        =   1
      Top             =   1320
      Width           =   1695
   End
   Begin VB.ComboBox Combo1 
      Height          =   315
      ItemData        =   "导游_景点查询.frx":17E63
      Left            =   5640
      List            =   "导游_景点查询.frx":17E6D
      TabIndex        =   0
      Text            =   "请选择查询方式"
      Top             =   720
      Width           =   1935
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "景点介绍"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFFF&
      Height          =   375
      Left            =   5040
      TabIndex        =   14
      Top             =   4200
      Width           =   975
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "结束日期"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFFF&
      Height          =   375
      Left            =   1200
      TabIndex        =   13
      Top             =   4440
      Width           =   975
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "出发日期"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFFF&
      Height          =   375
      Left            =   1200
      TabIndex        =   12
      Top             =   3960
      Width           =   855
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "景点名称"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFFF&
      Height          =   375
      Left            =   1200
      TabIndex        =   11
      Top             =   3360
      Width           =   855
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "景点编号"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFFF&
      Height          =   375
      Left            =   1200
      TabIndex        =   10
      Top             =   2760
      Width           =   855
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "导游->景点查询"
      BeginProperty Font 
         Name            =   "方正舒体"
         Size            =   24
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C0FFFF&
      Height          =   735
      Left            =   1080
      TabIndex        =   4
      Top             =   840
      Width           =   3855
   End
End
Attribute VB_Name = "导游景点查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()

End Sub

Private Sub Text3_Change()

End Sub

Private Sub 查询_Click()

 Set db = New ADODB.Connection
Set rs = New ADODB.Recordset
db.ConnectionString = "driver={SQL Server};server=zhangwei;database=travaldb"
db.Open
If Combo1.Text = "请选择查询方式" Then
MsgBox ("请选择您要查询的方式")
Text1.Text = ""
Else
If Combo1.Text = "导游姓名" Then
  rs.Open "select * from 导游数据表,旅游景点数据表 where 导游姓名 ='" & Trim(Text1.Text) & "' and 导游数据表.景点编号=旅游景点数据表.景点编号", db, 3, 3
    If rs.EOF Then
        MsgBox ("导游不存在")
        Combo1.Text = "请选择查询方式"
        Text1.Text = ""
        rs.Close
    Else
        Text2.Text = rs("景点编号")
        Text3.Text = rs("景点名称")
        Text4.Text = rs("出发日期")
        Text5.Text = rs("结束日期")
        Text6.Text = rs("景点介绍")
        rs.Close
    End If
Else
   rs.Open "select * from 导游数据表,旅游景点数据表 where 导游编号 ='" & Trim(Text1.Text) & "' and 导游数据表.景点编号=旅游景点数据表.景点编号", db, 3, 3
    If rs.EOF Then
        MsgBox ("导游不存在")
        Combo1.Text = "请选择查询方式"
        Text1.Text = ""
        rs.Close
    Else
        Text2.Text = rs("景点编号")
        Text3.Text = rs("景点名称")
        Text4.Text = rs("出发日期")
        Text5.Text = rs("结束日期")
        Text6.Text = rs("景点介绍")
        rs.Close
    End If
End If
End If
End Sub

Private Sub 取消_Click()
Combo1.Text = "请选择查询方式"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text1.SetFocus
Text2.SetFocus
Text3.SetFocus
Text4.SetFocus
Text5.SetFocus
Text6.SetFocus
End Sub

⌨️ 快捷键说明

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