Sound
06-08-2010, 01:42 AM
I have macro which as i think shows only selected journal data in sub form, but every time i select from journal list i get:
"Object doesn't contain the Automation object 'zzz'
You tried to run a Visual Basic 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 components documentation for information on the properties methods it makes available for automation operations."
here's the macro which list is using to update sub form:
Private Sub zurnalai_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID_pavad] = " & Str(Nz(Me![zurnalai], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Function zzz()
Call zurnalai_AfterUpdate
End Function
Any ideas?
"Object doesn't contain the Automation object 'zzz'
You tried to run a Visual Basic 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 components documentation for information on the properties methods it makes available for automation operations."
here's the macro which list is using to update sub form:
Private Sub zurnalai_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID_pavad] = " & Str(Nz(Me![zurnalai], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Function zzz()
Call zurnalai_AfterUpdate
End Function
Any ideas?