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

📄 frmprint.frm

📁 一套适用于超市
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmprint 
   BackColor       =   &H00FF80FF&
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.OptionButton Option2 
      BackColor       =   &H00FF80FF&
      Caption         =   "入库表"
      Height          =   375
      Left            =   2520
      TabIndex        =   3
      Top             =   600
      Width           =   975
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00FF80FF&
      Caption         =   "请选择你要打印的表:"
      Height          =   975
      Left            =   360
      TabIndex        =   1
      Top             =   240
      Width           =   3855
      Begin VB.OptionButton Option1 
         BackColor       =   &H00FF80FF&
         Caption         =   "出库表"
         Height          =   375
         Left            =   360
         TabIndex        =   2
         Top             =   360
         Width           =   1455
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Print"
      Height          =   615
      Left            =   1560
      TabIndex        =   0
      Top             =   1560
      Width           =   1335
   End
End
Attribute VB_Name = "frmprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Option1 = True Then
Set rtemp = New Recordset
 rtemp.Open "select * from 出库表", cs, adOpenKeyset, adLockPessimistic
 Set DataReport1.DataSource = rtemp
 DataReport1.Show
 Unload Me
ElseIf Option2 = True Then
 Set rtemp = New Recordset
 rtemp.Open "select * from 入库表", cs, adOpenKeyset, adLockPessimistic
 Set DataReport2.DataSource = rtemp
 DataReport2.Show
 Unload Me
 End If
 'If Option1.Value = False And Option2.Value = False Then
 'MsgBox "你没有选择要打印的表,请选择!", 16, "操作提示"
  'End If
End Sub

Private Sub Form_Load()
   Call LoginAccess
  End Sub

⌨️ 快捷键说明

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