Re: how to determine whether any report is opened?
- From: rkc <rkc@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 18 Dec 2005 13:31:00 GMT
Zlatko Matiæ wrote:
How could I determine, in VBA, whether any report (print preview) is currently opened?
Function OpenReports() As Variant Dim rpt As Access.AccessObject Dim s As String
For Each rpt In Application.CurrentProject.AllReports
With rpt
If .IsLoaded Then
If .CurrentView = acCurViewPreview Then
s = s & "," & .Name
End If
End If
End With
Next rptOpenReports = Split(Mid$(s, 2), ",")
End Function
Sub showOpenReports() Dim v As Variant Dim i As Integer
v = OpenReports()
For i = 0 To UBound(v)
Debug.Print v(i)
NextEnd Sub .
- References:
- how to determine whether any report is opened?
- From: Zlatko Matiæ
- how to determine whether any report is opened?
- Prev by Date: Re: MS Access forum
- Next by Date: Parsing
- Previous by thread: Re: how to determine whether any report is opened?
- Next by thread: Re: how to determine whether any report is opened?
- Index(es):
Relevant Pages
|
Loading