Hi:
I am trying to run a report of a parameter query populated by a form.
I am using the method described under the heading "Creating a form to supply parameters to a report" in the link below
I even downloaded the same DB in the link and when I try to run the report, I get the following error in the module created
"Compile Error...variable not defined" and it opens up the VB editor with the following code...
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
"acCurViewDesign" is highlighted and a yellow arrow points to the first line
"Function IsLoaded(ByVal strFormName As String) As Boolean"
And this happens with the sample DB I downloaded from Microsoft's web site. Is something wrong with my Access installation? Is it missing some libraries etc.
I am really confused. Any help will be appreciated.
Thanks,
Ram.
I am trying to run a report of a parameter query populated by a form.
I am using the method described under the heading "Creating a form to supply parameters to a report" in the link below
I even downloaded the same DB in the link and when I try to run the report, I get the following error in the module created
"Compile Error...variable not defined" and it opens up the VB editor with the following code...
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
"acCurViewDesign" is highlighted and a yellow arrow points to the first line
"Function IsLoaded(ByVal strFormName As String) As Boolean"
And this happens with the sample DB I downloaded from Microsoft's web site. Is something wrong with my Access installation? Is it missing some libraries etc.
I am really confused. Any help will be appreciated.
Thanks,
Ram.