M
Mani
Hi Bill! I've managed to figure out what I needed to do with the forms and
reports with parameters. I've attached a module to the form, so that the
form would close without having pop up parameters. All that is working
great! However, now that I've attached a module, for some reason my
switchboard is not working properly. When I click on the Switchboard manager
to edit items and what not, I get this message: Run-time error '6467': The
expression you entered is referred to an object that is closed or doesn't
exist.
Here's the code for my module:
Option Compare Database
Public bInReportOpenEvent As Boolean ' Is report in the Open event?
Function IsNull(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
IsNull = True
End If
End If
End Function
Is there something with the module that's why my switchboard isn't working
properly?? Please help!! Thanks in advance....
reports with parameters. I've attached a module to the form, so that the
form would close without having pop up parameters. All that is working
great! However, now that I've attached a module, for some reason my
switchboard is not working properly. When I click on the Switchboard manager
to edit items and what not, I get this message: Run-time error '6467': The
expression you entered is referred to an object that is closed or doesn't
exist.
Here's the code for my module:
Option Compare Database
Public bInReportOpenEvent As Boolean ' Is report in the Open event?
Function IsNull(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
IsNull = True
End If
End If
End Function
Is there something with the module that's why my switchboard isn't working
properly?? Please help!! Thanks in advance....