Form8.frm
上传用户:salesll
上传日期:2014-07-25
资源大小:2665k
文件大小:6k
源码类别:

交通/航空行业

开发平台:

Others

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form Form8 
  4.    BackColor       =   &H0080FFFF&
  5.    Caption         =   "司机档案查询修改"
  6.    ClientHeight    =   5040
  7.    ClientLeft      =   60
  8.    ClientTop       =   420
  9.    ClientWidth     =   6855
  10.    LinkTopic       =   "Form8"
  11.    ScaleHeight     =   5040
  12.    ScaleWidth      =   6855
  13.    StartUpPosition =   3  '窗口缺省
  14.    Begin VB.CommandButton Command2 
  15.       Caption         =   "取消"
  16.       Height          =   495
  17.       Left            =   4800
  18.       TabIndex        =   11
  19.       Top             =   4080
  20.       Width           =   1695
  21.    End
  22.    Begin VB.CommandButton Command1 
  23.       BackColor       =   &H00FFFFFF&
  24.       Caption         =   "修改"
  25.       Height          =   495
  26.       Left            =   4800
  27.       TabIndex        =   10
  28.       Top             =   2280
  29.       Width           =   1695
  30.    End
  31.    Begin MSAdodcLib.Adodc Adodc1 
  32.       Height          =   495
  33.       Left            =   4800
  34.       Top             =   600
  35.       Width           =   1695
  36.       _ExtentX        =   2990
  37.       _ExtentY        =   873
  38.       ConnectMode     =   0
  39.       CursorLocation  =   3
  40.       IsolationLevel  =   -1
  41.       ConnectionTimeout=   15
  42.       CommandTimeout  =   30
  43.       CursorType      =   3
  44.       LockType        =   3
  45.       CommandType     =   2
  46.       CursorOptions   =   0
  47.       CacheSize       =   50
  48.       MaxRecords      =   0
  49.       BOFAction       =   0
  50.       EOFAction       =   0
  51.       ConnectStringType=   3
  52.       Appearance      =   1
  53.       BackColor       =   8454143
  54.       ForeColor       =   -2147483640
  55.       Orientation     =   0
  56.       Enabled         =   -1
  57.       Connect         =   "DSN=cheliang"
  58.       OLEDBString     =   ""
  59.       OLEDBFile       =   ""
  60.       DataSourceName  =   "cheliang"
  61.       OtherAttributes =   ""
  62.       UserName        =   ""
  63.       Password        =   ""
  64.       RecordSource    =   "驾驶员档案"
  65.       Caption         =   "查询"
  66.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  67.          Name            =   "宋体"
  68.          Size            =   9
  69.          Charset         =   134
  70.          Weight          =   400
  71.          Underline       =   0   'False
  72.          Italic          =   0   'False
  73.          Strikethrough   =   0   'False
  74.       EndProperty
  75.       _Version        =   393216
  76.    End
  77.    Begin VB.TextBox Text5 
  78.       DataField       =   "准驾车型"
  79.       DataSource      =   "Adodc1"
  80.       Height          =   495
  81.       Left            =   1200
  82.       TabIndex        =   9
  83.       Top             =   4200
  84.       Width           =   2775
  85.    End
  86.    Begin VB.TextBox Text4 
  87.       DataField       =   "驾驶证号"
  88.       DataSource      =   "Adodc1"
  89.       Height          =   495
  90.       Left            =   1200
  91.       TabIndex        =   8
  92.       Top             =   3240
  93.       Width           =   2775
  94.    End
  95.    Begin VB.TextBox Text3 
  96.       DataField       =   "出生年月"
  97.       DataSource      =   "Adodc1"
  98.       Height          =   495
  99.       Left            =   1200
  100.       TabIndex        =   7
  101.       Top             =   2280
  102.       Width           =   2775
  103.    End
  104.    Begin VB.TextBox Text2 
  105.       DataField       =   "性别"
  106.       DataSource      =   "Adodc1"
  107.       Height          =   495
  108.       Left            =   1200
  109.       TabIndex        =   6
  110.       Top             =   1320
  111.       Width           =   2775
  112.    End
  113.    Begin VB.TextBox Text1 
  114.       DataField       =   "姓名"
  115.       DataSource      =   "Adodc1"
  116.       Height          =   495
  117.       Left            =   1200
  118.       TabIndex        =   5
  119.       Top             =   360
  120.       Width           =   2775
  121.    End
  122.    Begin VB.Label Label5 
  123.       BackColor       =   &H0080FFFF&
  124.       Caption         =   "驾驶车型:"
  125.       Height          =   495
  126.       Left            =   120
  127.       TabIndex        =   4
  128.       Top             =   4320
  129.       Width           =   1215
  130.    End
  131.    Begin VB.Label Label4 
  132.       BackColor       =   &H0080FFFF&
  133.       Caption         =   "驾驶证号:"
  134.       Height          =   495
  135.       Left            =   120
  136.       TabIndex        =   3
  137.       Top             =   3360
  138.       Width           =   1215
  139.    End
  140.    Begin VB.Label Label3 
  141.       BackColor       =   &H0080FFFF&
  142.       Caption         =   "出生年月:"
  143.       Height          =   495
  144.       Left            =   120
  145.       TabIndex        =   2
  146.       Top             =   2400
  147.       Width           =   1215
  148.    End
  149.    Begin VB.Label Label2 
  150.       BackColor       =   &H0080FFFF&
  151.       Caption         =   "性别:"
  152.       Height          =   495
  153.       Left            =   120
  154.       TabIndex        =   1
  155.       Top             =   1440
  156.       Width           =   1215
  157.    End
  158.    Begin VB.Label Label1 
  159.       BackColor       =   &H0080FFFF&
  160.       Caption         =   "姓名:"
  161.       Height          =   495
  162.       Left            =   120
  163.       TabIndex        =   0
  164.       Top             =   360
  165.       Width           =   1215
  166.    End
  167. End
  168. Attribute VB_Name = "Form8"
  169. Attribute VB_GlobalNameSpace = False
  170. Attribute VB_Creatable = False
  171. Attribute VB_PredeclaredId = True
  172. Attribute VB_Exposed = False
  173. Private Sub Command1_Click()
  174.    Dim rs As ADODB.Command
  175.    Dim str As String
  176.    Set rs = New ADODB.Command
  177.    Call open_db
  178.    str = "update 驾驶员档案 set 姓名= '" & Text1 & "' ,性别='" & Text2 & "',出生年月='" & Text3 & "',驾驶证号='" & Text4 & "',准驾车型='" & Text5 & "' where 驾驶证号= '" & Text4 & "'"
  179.    Set rs.ActiveConnection = adocon
  180.    rs.CommandText = str
  181.    rs.Execute
  182.    Set rs = Nothing
  183.    adocon.Close
  184.    Set adocon = Nothing
  185.    Call close_db
  186.    MsgBox "修改成功!", , vbOKOnly
  187. End Sub
  188. Private Sub Command2_Click()
  189.    Unload Me
  190. End Sub