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

📄 form3.frm

📁 VB编写的退税管理系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   360
      TabIndex        =   9
      Top             =   7320
      Width           =   2175
   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            =   2880
      TabIndex        =   8
      Top             =   6720
      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            =   360
      TabIndex        =   7
      Top             =   6720
      Width           =   1935
   End
   Begin VB.CommandButton Command4 
      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            =   5400
      TabIndex        =   6
      Top             =   7320
      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            =   5400
      TabIndex        =   5
      Top             =   6720
      Width           =   1815
   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            =   360
      TabIndex        =   4
      Top             =   6120
      Width           =   1935
   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             =   6120
      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            =   7920
      TabIndex        =   2
      Top             =   6120
      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            =   5400
      TabIndex        =   1
      Top             =   6120
      Width           =   1815
   End
   Begin VB.CommandButton Command10 
      Caption         =   "关闭本单元(&E)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   7920
      TabIndex        =   0
      Top             =   7320
      Width           =   1815
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   720
      Top             =   7560
      Visible         =   0   'False
      Width           =   6375
      _ExtentX        =   11245
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   2
      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 = "Form3"
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 Command12_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 Command13_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 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
      Adodc1.Recordset!人民币金额 = Adodc1.Recordset!外币汇率 * Adodc1.Recordset!外币金额
      Adodc1.Recordset.Update
      Adodc1.Recordset.MovePrevious  '这句和下一句也很重要,去掉就不行
     Adodc1.Recordset.MoveNext
    '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 + -