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

📄 rctojgdata.frm

📁 出版社图书出货管理系统,包括图书的出库,入库,结果输出
💻 FRM
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form rctojgdata 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "预采数据与荐购数据转换"
   ClientHeight    =   5355
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   9015
   Icon            =   "rctojgdata.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5355
   ScaleWidth      =   9015
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton Command3 
      Caption         =   "下转到上"
      Height          =   375
      Left            =   5040
      TabIndex        =   6
      Top             =   2520
      Width           =   975
   End
   Begin MSDBGrid.DBGrid DBGrid2 
      Bindings        =   "rctojgdata.frx":0442
      Height          =   1935
      Left            =   0
      OleObjectBlob   =   "rctojgdata.frx":0456
      TabIndex        =   5
      Top             =   2880
      Width           =   9015
   End
   Begin VB.CommandButton Command2 
      Caption         =   "上转到下"
      Height          =   375
      Left            =   2520
      TabIndex        =   3
      Top             =   2520
      Width           =   1095
   End
   Begin MSDBGrid.DBGrid DBGrid1 
      Bindings        =   "rctojgdata.frx":0E29
      Height          =   2175
      Left            =   0
      OleObjectBlob   =   "rctojgdata.frx":0E3D
      TabIndex        =   1
      Top             =   360
      Width           =   9015
   End
   Begin VB.Data Data2 
      Caption         =   "Data2"
      Connect         =   "Access"
      DatabaseName    =   "D:\TSCG\tsrddata.mdb"
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   6720
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   0  'Table
      RecordSource    =   "dgtable"
      Top             =   0
      Visible         =   0   'False
      Width           =   1695
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   "D:\TSCG\BOOKCGK.MDB"
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   375
      Left            =   4200
      Options         =   0
      ReadOnly        =   -1  'True
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "预采数据"
      Top             =   0
      Visible         =   0   'False
      Width           =   2535
   End
   Begin VB.CommandButton Command1 
      Caption         =   "退出"
      Height          =   375
      Left            =   4080
      TabIndex        =   0
      Top             =   4920
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "荐购数据"
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   2640
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "预采数据"
      Height          =   375
      Left            =   240
      TabIndex        =   2
      Top             =   0
      Width           =   1335
   End
End
Attribute VB_Name = "rctojgdata"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Unload Me
End Sub

Private Sub Command2_Click()
  Dim curr As Long
  curr = 0
  On Error Resume Next
  Data1.Recordset.MoveFirst
  Do While Not Data1.Recordset.EOF
    Data2.Recordset.AddNew
    Data2.Recordset.Fields("isbn") = Data1.Recordset.Fields("isbn").Value
    Data2.Recordset.Fields("bookname") = Data1.Recordset.Fields("bookname").Value
    Data2.Recordset.Fields("author") = Data1.Recordset.Fields("author").Value
     Data2.Recordset.Fields("bms") = Data1.Recordset.Fields("bms").Value
      Data2.Recordset.Fields("bmn") = Data1.Recordset.Fields("bmn").Value
      Data2.Recordset.Fields("jg") = Data1.Recordset.Fields("jg").Value
       Data2.Recordset.Fields("context") = Data1.Recordset.Fields("context").Value
        Data2.Recordset.Fields("provide") = Data1.Recordset.Fields("provide").Value
    Data2.Recordset.Update
    
    Data1.Recordset.MoveNext
    curr = curr + 1
    Me.Caption = "正在转入第:" & curr & "条"
  Loop
  MsgBox "转入完成,共" & curr & "条"
  Me.Caption = "预采数据与荐购数据转换"
End Sub

⌨️ 快捷键说明

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