A accesser2003 Registered User. Local time Tomorrow, 01:14 Joined Jun 2, 2007 Messages 124 May 14, 2008 #1 Is it possible to programmatically delete database objects like Forms or Reports from the database? What is the instruction used to do this? Thanks
Is it possible to programmatically delete database objects like Forms or Reports from the database? What is the instruction used to do this? Thanks
B barlowr70 New member Local time Today, 14:14 Joined May 13, 2008 Messages 6 May 14, 2008 #2 Try this... Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.dbs.AllForms 'dbs.AllForms Debug.Print obj.Name 'DoCmd.DeleteObject acForm, obj.Name Next obj
Try this... Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.dbs.AllForms 'dbs.AllForms Debug.Print obj.Name 'DoCmd.DeleteObject acForm, obj.Name Next obj