F
Fie
Hi,
I have followed the instrucation on how to Create a form to supply
parameters to a report from the microsoft website
(http://office.microsoft.com/en-us/assistance/HA011170771033.aspx?mode=print)
.. When you run the report it brings up the dialog box which I select
the critera but when I click on OK there is an error in the module
code. The code I have used is detailed below:
Option Compare Database
Option Explicit
Public bInReportOpenEvent As Boolean ' Is report in the Open event?
Function IsLoaded(ByVal strFormName As String) As Boolean
' Returns True if the specified form is open in Form view or Datasheet
view.
Dim oAccessObject As AccessObject
Set oAccessObject = CurrentProject.AllForms(strFormName)
If oAccessObject.IsLoaded Then
If oAccessObject.CurrentView <> acCurViewDesign Then
IsLoaded = True
End If
End If
End Function
I think the problem is because I am using Access 97. Please can you
advise
Fie
I have followed the instrucation on how to Create a form to supply
parameters to a report from the microsoft website
(http://office.microsoft.com/en-us/assistance/HA011170771033.aspx?mode=print)
.. When you run the report it brings up the dialog box which I select
the critera but when I click on OK there is an error in the module
code. The code I have used is detailed below:
Option Compare Database
Option Explicit
Public bInReportOpenEvent As Boolean ' Is report in the Open event?
Function IsLoaded(ByVal strFormName As String) As Boolean
' Returns True if the specified form is open in Form view or Datasheet
view.
Dim oAccessObject As AccessObject
Set oAccessObject = CurrentProject.AllForms(strFormName)
If oAccessObject.IsLoaded Then
If oAccessObject.CurrentView <> acCurViewDesign Then
IsLoaded = True
End If
End If
End Function
I think the problem is because I am using Access 97. Please can you
advise
Fie