www.pudn.com > 2005.rar > Form8.frm, change:2007-06-19,size:5826b


VERSION 5.00 
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX" 
Begin VB.Form Form8  
   BackColor       =   &H0080FFFF& 
   Caption         =   "司机档案查询修改" 
   ClientHeight    =   5040 
   ClientLeft      =   60 
   ClientTop       =   420 
   ClientWidth     =   6855 
   LinkTopic       =   "Form8" 
   ScaleHeight     =   5040 
   ScaleWidth      =   6855 
   StartUpPosition =   3  '窗口缺省 
   Begin VB.CommandButton Command2  
      Caption         =   "取消" 
      Height          =   495 
      Left            =   4800 
      TabIndex        =   11 
      Top             =   4080 
      Width           =   1695 
   End 
   Begin VB.CommandButton Command1  
      BackColor       =   &H00FFFFFF& 
      Caption         =   "修改" 
      Height          =   495 
      Left            =   4800 
      TabIndex        =   10 
      Top             =   2280 
      Width           =   1695 
   End 
   Begin MSAdodcLib.Adodc Adodc1  
      Height          =   495 
      Left            =   4800 
      Top             =   600 
      Width           =   1695 
      _ExtentX        =   2990 
      _ExtentY        =   873 
      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=   3 
      Appearance      =   1 
      BackColor       =   8454143 
      ForeColor       =   -2147483640 
      Orientation     =   0 
      Enabled         =   -1 
      Connect         =   "DSN=cheliang" 
      OLEDBString     =   "" 
      OLEDBFile       =   "" 
      DataSourceName  =   "cheliang" 
      OtherAttributes =   "" 
      UserName        =   "" 
      Password        =   "" 
      RecordSource    =   "驾驶员档案" 
      Caption         =   "查询" 
      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.TextBox Text5  
      DataField       =   "准驾车型" 
      DataSource      =   "Adodc1" 
      Height          =   495 
      Left            =   1200 
      TabIndex        =   9 
      Top             =   4200 
      Width           =   2775 
   End 
   Begin VB.TextBox Text4  
      DataField       =   "驾驶证号" 
      DataSource      =   "Adodc1" 
      Height          =   495 
      Left            =   1200 
      TabIndex        =   8 
      Top             =   3240 
      Width           =   2775 
   End 
   Begin VB.TextBox Text3  
      DataField       =   "出生年月" 
      DataSource      =   "Adodc1" 
      Height          =   495 
      Left            =   1200 
      TabIndex        =   7 
      Top             =   2280 
      Width           =   2775 
   End 
   Begin VB.TextBox Text2  
      DataField       =   "性别" 
      DataSource      =   "Adodc1" 
      Height          =   495 
      Left            =   1200 
      TabIndex        =   6 
      Top             =   1320 
      Width           =   2775 
   End 
   Begin VB.TextBox Text1  
      DataField       =   "姓名" 
      DataSource      =   "Adodc1" 
      Height          =   495 
      Left            =   1200 
      TabIndex        =   5 
      Top             =   360 
      Width           =   2775 
   End 
   Begin VB.Label Label5  
      BackColor       =   &H0080FFFF& 
      Caption         =   "驾驶车型:" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   4 
      Top             =   4320 
      Width           =   1215 
   End 
   Begin VB.Label Label4  
      BackColor       =   &H0080FFFF& 
      Caption         =   "驾驶证号:" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   3 
      Top             =   3360 
      Width           =   1215 
   End 
   Begin VB.Label Label3  
      BackColor       =   &H0080FFFF& 
      Caption         =   "出生年月:" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   2 
      Top             =   2400 
      Width           =   1215 
   End 
   Begin VB.Label Label2  
      BackColor       =   &H0080FFFF& 
      Caption         =   "性别:" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   1 
      Top             =   1440 
      Width           =   1215 
   End 
   Begin VB.Label Label1  
      BackColor       =   &H0080FFFF& 
      Caption         =   "姓名:" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   0 
      Top             =   360 
      Width           =   1215 
   End 
End 
Attribute VB_Name = "Form8" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Private Sub Command1_Click() 
   Dim rs As ADODB.Command 
   Dim str As String 
   Set rs = New ADODB.Command 
   Call open_db 
   str = "update 驾驶员档案 set 姓名= '" & Text1 & "' ,性别='" & Text2 & "',出生年月='" & Text3 & "',驾驶证号='" & Text4 & "',准驾车型='" & Text5 & "' where 驾驶证号= '" & Text4 & "'" 
   Set rs.ActiveConnection = adocon 
   rs.CommandText = str 
   rs.Execute 
   Set rs = Nothing 
   adocon.Close 
   Set adocon = Nothing 
   Call close_db 
   MsgBox "修改成功!", , vbOKOnly 
End Sub 
 
Private Sub Command2_Click() 
   Unload Me 
End Sub