Error - "The object doesn't contain the Automation object "ExperationDialog"
I created a form called ExperationDialog. I used the directions in Microsoft Access help titled "Use a Form to Enter Report Creiteria" When I run the report I am getting an error that says:
"The object doesn't contain the Automation object "ExperationDialog"
You tried to runa VB Procedure to set a property or Method for an object. However, the component doesn't make the property or method available for Automation Operations.
Check the componts docuentation for information on the properties methods it makes available for automation operations."
I created an unbound form with a date range & 1 other criterion
I am trying to create a report that will filter through a table and tell me whose applications are going to expire within a 3 months time frame (or quarterly), for different divisions.
I created an unbound form to accept the division name and a Beginning date and an ending date.
I want the report to show the division and all of the companies that are assigned to that division whose applications are going to expire. I also need to have a few other fields on the report from the table.
In design view I created an unbound form and created macros for the form in a macro group. (OK, Cancel, OpenForm, CloseForm).
I used the IsLoaded function and defined the function in the database. This is where I think there might be an error. The directions said to use the code from the Northwinds Database. It did not work so well. I found some other sample code on the internet, but I still get the automation error. The code I used is:
Function IsLoaded(ByVal strExperationDialog As String) As Boolean
' Returns True if the specified form is open in Form view or Datasheet view.
Const conObjStateClosed = 0
Const conDesignView = 0
If SysCmd(acSysCmdGetObjectState, acForm, strExperationDialog) <> conObjStateClosed Then
If Forms(strExperationDialog).CurrentView <> conDesignView Then
IsLoaded = True
End If
End If
End Function
The code I found in the Northwind Database was:
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(strExperationDialog)
If oAccessObject.IsLoaded Then
If oAccessObject.CurrentView <> acCurViewDesign Then
IsLoaded = True
End If
End If
End Function
I created a query using the table fields I needed and under the critera for Division I put:
[Forms]![ExperationDialog]![Division]
and under the criteria for the Expiration Date I put:
Between [Forms]![ExperationDialog]![BeginninDate] And [Forms]![Ending Date]
I created a report using the report wizard and selected the fields from the query I created. When I run the report the form pops up, you enter the criteria and hit OK, and I get the error. After I get the error the report pops up. I get the error the first 3 times I run the report with the report poping up, but after that. The report does not generate and I do not recieve any more errors.
I did not understand the directions for what to do if it is an Access project. I am not sure if I am using an Access project or not? The database information in Visual Basics shows up as if it is a project, but that is in VB. I used the VB script to define the function for IsLoaded. How do I tell if it is an Access project .adp?
I don’t know what to do from here. How do I get this error message fixed?
I created a form called ExperationDialog. I used the directions in Microsoft Access help titled "Use a Form to Enter Report Creiteria" When I run the report I am getting an error that says:
"The object doesn't contain the Automation object "ExperationDialog"
You tried to runa VB Procedure to set a property or Method for an object. However, the component doesn't make the property or method available for Automation Operations.
Check the componts docuentation for information on the properties methods it makes available for automation operations."
I created an unbound form with a date range & 1 other criterion
I am trying to create a report that will filter through a table and tell me whose applications are going to expire within a 3 months time frame (or quarterly), for different divisions.
I created an unbound form to accept the division name and a Beginning date and an ending date.
I want the report to show the division and all of the companies that are assigned to that division whose applications are going to expire. I also need to have a few other fields on the report from the table.
In design view I created an unbound form and created macros for the form in a macro group. (OK, Cancel, OpenForm, CloseForm).
I used the IsLoaded function and defined the function in the database. This is where I think there might be an error. The directions said to use the code from the Northwinds Database. It did not work so well. I found some other sample code on the internet, but I still get the automation error. The code I used is:
Function IsLoaded(ByVal strExperationDialog As String) As Boolean
' Returns True if the specified form is open in Form view or Datasheet view.
Const conObjStateClosed = 0
Const conDesignView = 0
If SysCmd(acSysCmdGetObjectState, acForm, strExperationDialog) <> conObjStateClosed Then
If Forms(strExperationDialog).CurrentView <> conDesignView Then
IsLoaded = True
End If
End If
End Function
The code I found in the Northwind Database was:
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(strExperationDialog)
If oAccessObject.IsLoaded Then
If oAccessObject.CurrentView <> acCurViewDesign Then
IsLoaded = True
End If
End If
End Function
I created a query using the table fields I needed and under the critera for Division I put:
[Forms]![ExperationDialog]![Division]
and under the criteria for the Expiration Date I put:
Between [Forms]![ExperationDialog]![BeginninDate] And [Forms]![Ending Date]
I created a report using the report wizard and selected the fields from the query I created. When I run the report the form pops up, you enter the criteria and hit OK, and I get the error. After I get the error the report pops up. I get the error the first 3 times I run the report with the report poping up, but after that. The report does not generate and I do not recieve any more errors.
I did not understand the directions for what to do if it is an Access project. I am not sure if I am using an Access project or not? The database information in Visual Basics shows up as if it is a project, but that is in VB. I used the VB script to define the function for IsLoaded. How do I tell if it is an Access project .adp?
I don’t know what to do from here. How do I get this error message fixed?