I’m having a problem opening several forms by macro :
Opening a first Form “F_Contact.” by macro works fine :
Sub Ouvre_Recherche_par_nom( oEvent as variant )
ThisDatabaseDocument.FormDocuments.getByName(“F_Contact”).open
End Sub
Opening a other Form " New_Contact" with a other similar macro is not working :
Sub Ouvre_New_Contact( oEvent as variant )
ThisDatabaseDocument.FormDocuments.getByName(“New_Contact”).open
End Sub
gives an ERROR, Type: com.sun.star.container.NoSuchElementException Message: New_Contact !
I probaly missunderstand some programming details.
Does anybody know the trick ?