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

📄 form4.frm

📁 VB编写的退税管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   480
         TabIndex        =   21
         Top             =   2760
         Width           =   1215
      End
      Begin VB.Label Label3 
         Caption         =   "进料登记手册号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   495
         Left            =   480
         TabIndex        =   20
         Top             =   1920
         Width           =   855
      End
      Begin VB.Label Label2 
         Caption         =   "序号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   480
         TabIndex        =   19
         Top             =   1320
         Width           =   1215
      End
      Begin VB.Label Label1 
         Caption         =   "所属期"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   480
         TabIndex        =   18
         Top             =   720
         Width           =   1215
      End
   End
   Begin VB.CommandButton Command11 
      Caption         =   "公司名称查询(&H)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   8400
      TabIndex        =   9
      Top             =   6480
      Width           =   1815
   End
   Begin VB.CommandButton Command3 
      Caption         =   "取消数据更新(&C)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   240
      TabIndex        =   8
      Top             =   7080
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加记录(&A)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   5280
      TabIndex        =   7
      Top             =   3840
      Width           =   1695
   End
   Begin VB.CommandButton Command4 
      BackColor       =   &H00E0E0E0&
      Caption         =   "保存修改(&U)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   6360
      TabIndex        =   6
      Top             =   7080
      Width           =   1815
   End
   Begin VB.CommandButton Command5 
      Caption         =   "删除本记录(&D)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   4440
      TabIndex        =   5
      Top             =   7080
      Width           =   1695
   End
   Begin VB.CommandButton Command2 
      Caption         =   "前一条记录(&P)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   840
      TabIndex        =   4
      Top             =   3840
      Width           =   1695
   End
   Begin VB.CommandButton Command6 
      Caption         =   "后一条记录(&S)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2880
      TabIndex        =   3
      Top             =   3840
      Width           =   1815
   End
   Begin VB.CommandButton Command8 
      Caption         =   "最后一条记录(&L)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2280
      TabIndex        =   2
      Top             =   6480
      Width           =   1815
   End
   Begin VB.CommandButton Command9 
      Caption         =   "第一条记录(&F)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   240
      TabIndex        =   1
      Top             =   6480
      Width           =   1815
   End
   Begin VB.CommandButton Command10 
      Caption         =   "关闭本单元(&C)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   8400
      TabIndex        =   0
      Top             =   7080
      Width           =   1815
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   600
      Top             =   7320
      Visible         =   0   'False
      Width           =   6375
      _ExtentX        =   11245
      _ExtentY        =   661
      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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zlgl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zlgl.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "进料加工复出口贸易免税数据"
      Caption         =   "Adodc1"
      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
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo AddErr
    Adodc1.Recordset.MoveLast
      Adodc1.Recordset.AddNew
    'TDBGrid1.Row = TDBGrid1.Row + 1
    'TDBGrid1.SetFocus
  Exit Sub
AddErr:
  MsgBox Err.Description
End Sub

Private Sub Command10_Click()
Unload Me
'Form1.Show
End Sub

Private Sub Command11_Click()
Dim strQuery As String
Dim i As String
i = InputBox("请输入要查询的公司名称", "公司名称查询")
strQuery = "SELECT * FROM 进料加工复出口贸易免税数据 where 公司名称='" & i & "'"
Dim str As String '定义
str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zlgl.mdb;Persist Security Info=False"
Form8.Adodc1.ConnectionString = str
Form8.Adodc1.CommandType = adCmdText
Form8.Adodc1.RecordSource = strQuery
Form8.Adodc1.Refresh
Set Form8.DataGrid1.DataSource = Form8.Adodc1
Form8.Label1.Caption = "共为您查到了 " & Form8.Adodc1.Recordset.RecordCount & " 条记录"
Form8.Show
End Sub

Private Sub Command12_Click()
If Not Adodc1.Recordset.BOF Then
Adodc1.Recordset.MovePrevious
End If
End Sub

Private Sub Command13_Click()
If Not Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveNext
End If
End Sub

Private Sub Command14_Click()
On Error GoTo AddErr
    Adodc1.Recordset.MoveLast
      Adodc1.Recordset.AddNew
    'TDBGrid1.Row = TDBGrid1.Row + 1
    'TDBGrid1.SetFocus
  Exit Sub
AddErr:
  MsgBox Err.Description
End Sub

Private Sub Command2_Click()
If Not Adodc1.Recordset.BOF Then
Adodc1.Recordset.MovePrevious
End If
End Sub

Private Sub Command3_Click()
 On Error GoTo UpdateErr
      Adodc1.Recordset.CancelUpdate
    'TDBGrid1.SetFocus
    Exit Sub
UpdateErr:
  MsgBox Err.Description
End Sub

Private Sub Command4_Click()
  On Error GoTo UpdateErr
      Adodc1.Recordset.Update
    'TDBGrid1.SetFocus
    Exit Sub
UpdateErr:
  MsgBox Err.Description
End Sub

Private Sub Command5_Click()
   prompt$ = "真的要删除本记录吗?"
rc = MsgBox(prompt$, vbOKCancel + vbQuestion, "删除本记录")
If rc = vbOK Then
    Adodc1.Recordset.Delete
    Adodc1.Recordset.MoveNext
    If Adodc1.Recordset.EOF = True Then
    Adodc1.Recordset.MoveLast
    End If

End If
End Sub

Private Sub Command6_Click()
If Not Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveNext
End If
End Sub

Private Sub Command7_Click()
Dim strQuery As String
Dim i As String
i = InputBox("请输入要查询的记录表编号", "记录表编号查询")
strQuery = "SELECT * FROM 项目物资报价单 where 记录表编号='" & i & "'"
Dim str As String '定义
str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=zlgl.mdb;Persist Security Info=False"
Form8.Adodc1.ConnectionString = str
Form8.Adodc1.CommandType = adCmdText
Form8.Adodc1.RecordSource = strQuery
Form8.Adodc1.Refresh
Set Form8.DataGrid1.DataSource = Form8.Adodc1
Form8.Label1.Caption = "共为您查到了 " & Form8.Adodc1.Recordset.RecordCount & " 条记录"
Form8.Show
End Sub

Private Sub Command8_Click()
Adodc1.Recordset.MoveLast
End Sub

Private Sub Command9_Click()
Adodc1.Recordset.MoveFirst
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Unload Me
Form1.Show
End Sub


⌨️ 快捷键说明

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