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

交通/航空行业

开发平台:

Others

  1. VERSION 5.00
  2. Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
  3. Begin VB.Form Form3 
  4.    BackColor       =   &H00C0FFFF&
  5.    Caption         =   "车辆管理查询修改"
  6.    ClientHeight    =   6240
  7.    ClientLeft      =   60
  8.    ClientTop       =   420
  9.    ClientWidth     =   7470
  10.    LinkTopic       =   "Form3"
  11.    ScaleHeight     =   6240
  12.    ScaleWidth      =   7470
  13.    StartUpPosition =   3  '窗口缺省
  14.    Begin MSAdodcLib.Adodc Adodc1 
  15.       Height          =   615
  16.       Left            =   240
  17.       Top             =   5160
  18.       Width           =   1695
  19.       _ExtentX        =   2990
  20.       _ExtentY        =   1085
  21.       ConnectMode     =   0
  22.       CursorLocation  =   3
  23.       IsolationLevel  =   -1
  24.       ConnectionTimeout=   15
  25.       CommandTimeout  =   30
  26.       CursorType      =   3
  27.       LockType        =   3
  28.       CommandType     =   2
  29.       CursorOptions   =   0
  30.       CacheSize       =   50
  31.       MaxRecords      =   0
  32.       BOFAction       =   0
  33.       EOFAction       =   0
  34.       ConnectStringType=   3
  35.       Appearance      =   1
  36.       BackColor       =   12648447
  37.       ForeColor       =   -2147483640
  38.       Orientation     =   0
  39.       Enabled         =   -1
  40.       Connect         =   "DSN=cheliang"
  41.       OLEDBString     =   ""
  42.       OLEDBFile       =   ""
  43.       DataSourceName  =   "cheliang"
  44.       OtherAttributes =   ""
  45.       UserName        =   ""
  46.       Password        =   ""
  47.       RecordSource    =   "车辆档案"
  48.       Caption         =   "查询"
  49.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  50.          Name            =   "宋体"
  51.          Size            =   9
  52.          Charset         =   134
  53.          Weight          =   400
  54.          Underline       =   0   'False
  55.          Italic          =   0   'False
  56.          Strikethrough   =   0   'False
  57.       EndProperty
  58.       _Version        =   393216
  59.    End
  60.    Begin VB.CommandButton Command3 
  61.       Caption         =   "取消"
  62.       BeginProperty Font 
  63.          Name            =   "宋体"
  64.          Size            =   15.75
  65.          Charset         =   134
  66.          Weight          =   400
  67.          Underline       =   0   'False
  68.          Italic          =   0   'False
  69.          Strikethrough   =   0   'False
  70.       EndProperty
  71.       Height          =   615
  72.       Left            =   5040
  73.       TabIndex        =   11
  74.       Top             =   5160
  75.       Width           =   1695
  76.    End
  77.    Begin VB.CommandButton Command2 
  78.       BackColor       =   &H00FFFFFF&
  79.       Caption         =   "删除"
  80.       BeginProperty Font 
  81.          Name            =   "宋体"
  82.          Size            =   15.75
  83.          Charset         =   134
  84.          Weight          =   400
  85.          Underline       =   0   'False
  86.          Italic          =   0   'False
  87.          Strikethrough   =   0   'False
  88.       EndProperty
  89.       Height          =   615
  90.       Left            =   2520
  91.       TabIndex        =   10
  92.       Top             =   5160
  93.       Width           =   1935
  94.    End
  95.    Begin VB.TextBox Text1 
  96.       DataField       =   "车牌号码"
  97.       DataSource      =   "Adodc1"
  98.       BeginProperty Font 
  99.          Name            =   "宋体"
  100.          Size            =   15.75
  101.          Charset         =   134
  102.          Weight          =   400
  103.          Underline       =   0   'False
  104.          Italic          =   0   'False
  105.          Strikethrough   =   0   'False
  106.       EndProperty
  107.       Height          =   615
  108.       Left            =   2160
  109.       ScrollBars      =   2  'Vertical
  110.       TabIndex        =   1
  111.       Top             =   360
  112.       Width           =   3855
  113.    End
  114.    Begin VB.Label Label9 
  115.       DataField       =   "车辆所在单位"
  116.       DataSource      =   "Adodc1"
  117.       BeginProperty Font 
  118.          Name            =   "宋体"
  119.          Size            =   15.75
  120.          Charset         =   134
  121.          Weight          =   400
  122.          Underline       =   0   'False
  123.          Italic          =   0   'False
  124.          Strikethrough   =   0   'False
  125.       EndProperty
  126.       Height          =   495
  127.       Left            =   2160
  128.       TabIndex        =   9
  129.       Top             =   4200
  130.       Width           =   3735
  131.    End
  132.    Begin VB.Label Label8 
  133.       DataField       =   "购买时间"
  134.       DataSource      =   "Adodc1"
  135.       BeginProperty Font 
  136.          Name            =   "宋体"
  137.          Size            =   15.75
  138.          Charset         =   134
  139.          Weight          =   400
  140.          Underline       =   0   'False
  141.          Italic          =   0   'False
  142.          Strikethrough   =   0   'False
  143.       EndProperty
  144.       Height          =   495
  145.       Left            =   2160
  146.       TabIndex        =   8
  147.       Top             =   3240
  148.       Width           =   3735
  149.    End
  150.    Begin VB.Label Label7 
  151.       DataField       =   "车辆类型"
  152.       DataSource      =   "Adodc1"
  153.       BeginProperty Font 
  154.          Name            =   "宋体"
  155.          Size            =   15.75
  156.          Charset         =   134
  157.          Weight          =   400
  158.          Underline       =   0   'False
  159.          Italic          =   0   'False
  160.          Strikethrough   =   0   'False
  161.       EndProperty
  162.       Height          =   495
  163.       Left            =   2160
  164.       TabIndex        =   7
  165.       Top             =   2160
  166.       Width           =   3735
  167.    End
  168.    Begin VB.Label Label6 
  169.       DataField       =   "驾驶员编号"
  170.       DataSource      =   "Adodc1"
  171.       BeginProperty Font 
  172.          Name            =   "宋体"
  173.          Size            =   15.75
  174.          Charset         =   134
  175.          Weight          =   400
  176.          Underline       =   0   'False
  177.          Italic          =   0   'False
  178.          Strikethrough   =   0   'False
  179.       EndProperty
  180.       Height          =   495
  181.       Left            =   2160
  182.       TabIndex        =   6
  183.       Top             =   1320
  184.       Width           =   3735
  185.    End
  186.    Begin VB.Label Label5 
  187.       BackColor       =   &H00C0FFFF&
  188.       Caption         =   "车辆所在单位:"
  189.       BeginProperty Font 
  190.          Name            =   "宋体"
  191.          Size            =   15.75
  192.          Charset         =   134
  193.          Weight          =   400
  194.          Underline       =   0   'False
  195.          Italic          =   0   'False
  196.          Strikethrough   =   0   'False
  197.       EndProperty
  198.       Height          =   615
  199.       Left            =   120
  200.       TabIndex        =   5
  201.       Top             =   4200
  202.       Width           =   2295
  203.    End
  204.    Begin VB.Label Label4 
  205.       BackColor       =   &H00C0FFFF&
  206.       Caption         =   "购买时间:"
  207.       BeginProperty Font 
  208.          Name            =   "宋体"
  209.          Size            =   15.75
  210.          Charset         =   134
  211.          Weight          =   400
  212.          Underline       =   0   'False
  213.          Italic          =   0   'False
  214.          Strikethrough   =   0   'False
  215.       EndProperty
  216.       Height          =   615
  217.       Left            =   120
  218.       TabIndex        =   4
  219.       Top             =   3240
  220.       Width           =   2295
  221.    End
  222.    Begin VB.Label Label3 
  223.       BackColor       =   &H00C0FFFF&
  224.       Caption         =   "车辆类型:"
  225.       BeginProperty Font 
  226.          Name            =   "宋体"
  227.          Size            =   15.75
  228.          Charset         =   134
  229.          Weight          =   400
  230.          Underline       =   0   'False
  231.          Italic          =   0   'False
  232.          Strikethrough   =   0   'False
  233.       EndProperty
  234.       Height          =   615
  235.       Left            =   120
  236.       TabIndex        =   3
  237.       Top             =   2160
  238.       Width           =   2175
  239.    End
  240.    Begin VB.Label Label2 
  241.       BackColor       =   &H00C0FFFF&
  242.       Caption         =   "驾驶员编号:"
  243.       BeginProperty Font 
  244.          Name            =   "宋体"
  245.          Size            =   15.75
  246.          Charset         =   134
  247.          Weight          =   400
  248.          Underline       =   0   'False
  249.          Italic          =   0   'False
  250.          Strikethrough   =   0   'False
  251.       EndProperty
  252.       Height          =   495
  253.       Left            =   120
  254.       TabIndex        =   2
  255.       Top             =   1320
  256.       Width           =   2175
  257.    End
  258.    Begin VB.Label Label1 
  259.       BackColor       =   &H00C0FFFF&
  260.       Caption         =   "车牌号码:"
  261.       BeginProperty Font 
  262.          Name            =   "宋体"
  263.          Size            =   15.75
  264.          Charset         =   134
  265.          Weight          =   400
  266.          Underline       =   0   'False
  267.          Italic          =   0   'False
  268.          Strikethrough   =   0   'False
  269.       EndProperty
  270.       Height          =   615
  271.       Left            =   120
  272.       TabIndex        =   0
  273.       Top             =   480
  274.       Width           =   1695
  275.    End
  276. End
  277. Attribute VB_Name = "Form3"
  278. Attribute VB_GlobalNameSpace = False
  279. Attribute VB_Creatable = False
  280. Attribute VB_PredeclaredId = True
  281. Attribute VB_Exposed = False
  282. Private Sub Command1_Click()
  283. End Sub
  284. Private Sub Command2_Click()
  285.    Dim rs As ADODB.Command
  286.    Dim str As String
  287.    Set rs = New ADODB.Command
  288.    Call open_db
  289.    str = "delete from 车辆档案 where 车牌号码= '" & Text1 & "'"
  290.    Set rs.ActiveConnection = adocon
  291.    rs.CommandText = str
  292.    rs.Execute
  293.    Set rs = Nothing
  294.    adocon.Close
  295.    Set adocon = Nothing
  296.    Call close_db
  297.    MsgBox "删除成功!", , vbOKOnly
  298. End Sub
  299. Private Sub Command3_Click()
  300.    Unload Me
  301. End Sub