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

📄 frminpatientdocreport.frm

📁 This file came from Planet-Source-Code.com...the home millions of lines of source code You can view
💻 FRM
字号:
VERSION 5.00
Object = "{00025600-0000-0000-C000-000000000046}#5.2#0"; "Crystl32.OCX"
Object = "{935C9182-411B-4FFB-9512-97C8745743BC}#2.4#0"; "AResize.ocx"
Begin VB.Form frmInPatientDocReport 
   BackColor       =   &H00FF8080&
   Caption         =   "In Patient Doctor Visits Report"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8340
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   3090
   ScaleWidth      =   8340
   Begin ActiveResizeCtl.ActiveResize ActiveResize1 
      Left            =   2520
      Top             =   120
      _ExtentX        =   847
      _ExtentY        =   847
      Resolution      =   4
      ScreenHeight    =   1024
      ScreenWidth     =   1280
      ScreenHeightDT  =   1024
      ScreenWidthDT   =   1280
      AutoCenterForm  =   -1  'True
      FormHeightDT    =   3600
      FormWidthDT     =   8460
      FormScaleHeightDT=   3090
      FormScaleWidthDT=   8340
   End
   Begin VB.CommandButton cmdClose 
      BackColor       =   &H00FFFFFF&
      Caption         =   "&Close"
      Height          =   975
      Left            =   6720
      Picture         =   "frmInPatientDocReport.frx":0000
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   840
      Width           =   1335
   End
   Begin VB.CommandButton cmdView 
      BackColor       =   &H00FFFFFF&
      Caption         =   "View Report"
      Height          =   975
      Left            =   5280
      Picture         =   "frmInPatientDocReport.frx":0504
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   840
      Width           =   1335
   End
   Begin VB.ComboBox cmbAdmitID 
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      ItemData        =   "frmInPatientDocReport.frx":0A90
      Left            =   2880
      List            =   "frmInPatientDocReport.frx":0A92
      Style           =   2  'Dropdown List
      TabIndex        =   0
      Top             =   1200
      Width           =   2295
   End
   Begin Crystal.CrystalReport crDocVisit 
      Left            =   240
      Top             =   2040
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   348160
      PrintFileLinesPerPage=   60
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FF8080&
      Caption         =   "Patient Admission ID"
      BeginProperty Font 
         Name            =   "Verdana"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   360
      TabIndex        =   3
      Top             =   1200
      Width           =   2295
   End
   Begin VB.Shape Shape1 
      Height          =   1215
      Left            =   120
      Top             =   720
      Width           =   8055
   End
End
Attribute VB_Name = "frmInPatientDocReport"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdView_Click()
If cmbAdmitID = "" Then
    MsgBox "Please select the Admisison ID", vbCritical
    Exit Sub
End If

Dim strReport As String
strReport = App.Path & "\Reports\InPatient\DoctorVisits.rpt"


crDocVisit.ReportFileName = App.Path & "\Reports\InPatient\DoctorVisits.rpt"
crDocVisit.DiscardSavedData = True
crDocVisit.ReplaceSelectionFormula ("{Visit_Details.Admission_ID}  ='" & cmbAdmitID & "'")


crDocVisit.WindowState = crptMaximized
crDocVisit.Action = 1
End Sub

Private Sub Form_Load()
Dim rsadd As Recordset
Set rsadd = New ADODB.Recordset

rsadd.Open "Select * from Admission_Details", cnPatients, adOpenDynamic, adLockReadOnly

While rsadd.EOF = False
cmbAdmitID.AddItem rsadd(0)
rsadd.MoveNext
Wend

rsadd.Close

End Sub

⌨️ 快捷键说明

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