VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form3 
   Caption         =   "Form3"
   ClientHeight    =   2370
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4740
   LinkTopic       =   "Form3"
   ScaleHeight     =   2370
   ScaleWidth      =   4740
   StartUpPosition =   3  '窗口缺省
   Begin VB.ComboBox Combo1 
      Height          =   300
      ItemData        =   "sy11-13c.frx":0000
      Left            =   3900
      List            =   "sy11-13c.frx":000A
      TabIndex        =   6
      Text            =   "男"
      Top             =   60
      Width           =   795
   End
   Begin VB.Data Data1 
      Align           =   2  'Align Bottom
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "E:\VB6.0实验指导与测试\Mydb.mdb"
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   0
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "Class"
      Top             =   2025
      Width           =   4740
   End
   Begin MSFlexGridLib.MSFlexGrid MSFlexGrid1 
      Bindings        =   "sy11-13c.frx":0016
      Height          =   1395
      Left            =   60
      TabIndex        =   5
      Top             =   600
      Width           =   4635
      _ExtentX        =   8176
      _ExtentY        =   2461
      _Version        =   393216
      FixedCols       =   0
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2040
      TabIndex        =   1
      Top             =   0
      Width           =   1275
   End
   Begin VB.TextBox Text1 
      DataField       =   "学号"
      DataSource      =   "Data1"
      Height          =   375
      Left            =   480
      TabIndex        =   0
      Top             =   0
      Width           =   1035
   End
   Begin VB.Label Label1 
      Caption         =   "学号"
      Height          =   255
      Index           =   0
      Left            =   0
      TabIndex        =   4
      Top             =   120
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   "性别"
      Height          =   255
      Index           =   4
      Left            =   3420
      TabIndex        =   3
      Top             =   120
      Width           =   405
   End
   Begin VB.Label Label1 
      Caption         =   "姓名"
      Height          =   255
      Index           =   1
      Left            =   1620
      TabIndex        =   2
      Top             =   120
      Width           =   495
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    Data1.RecordSource = "Select * From Class Where Class.学号='" & no & "'"
    Data1.Refresh
    Text1 = Form1.Text1                 ' 对应Form1中的学号
    Text2 = Form1.Text2                 ' 对应Form1中的姓名
    If Form1.Text3 = "男" Then          ' 根据Option1选择Combo1数据项
        Combo1.ListIndex = 0
    Else
        Combo1.ListIndex = 1
    End If
End Sub
