Bug 150917 - Access2Base. The Properties method crashes on Database, Table or Report objects
Summary: Access2Base. The Properties method crashes on Database, Table or Report objects
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Queries
  Show dependency treegraph
 
Reported: 2022-09-12 11:30 UTC by Ramon Plana
Modified: 2023-03-13 15:27 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Database Firebird embedded with macros (30.35 KB, application/vnd.oasis.opendocument.database)
2022-09-12 11:37 UTC, Ramon Plana
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ramon Plana 2022-09-12 11:30:12 UTC
Description:
oDatabase = Application.CurrentDb()
For i=0 to oConsulta.Properties.Count-1
'	Error: The property or method _ParentDatabase is not found
'	Access2Base, module Database, line 891: Set vProperty._ParentDatabase = _This


oConsulta=oDatabase.TableDefs("Rebuts")
Print oConsulta.Properties
'	Error: The property or method _ParentDatabase is not found
'	Access2Base, module DataDef, line 452: Set vProperty._ParentDatabase = _ParentDatabase

oConsulta=oDatabase.QueryDefs("$RebutDades")
Print oConsulta.Properties
'	Error: The property or method _ParentDatabase is not found
'	Access2Base, module DataDef, line 452: Set vProperty._ParentDatabase = _ParentDatabase


Steps to Reproduce:
1.Set object: oDatabase = Application.CurrentDb()
2.Explore properties: Print oDatabase.Properties or Print oDatabase.Properties(0)
3.

Actual Results:
Error: The property or method _ParentDatabase is not found

Expected Results:
A list of properties


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice 7.3.5.2
Windows 7, LUbuntu 20.04
Firebird embedded
Comment 1 Ramon Plana 2022-09-12 11:37:22 UTC
Created attachment 182396 [details]
Database Firebird embedded with macros
Comment 2 Julien Nabet 2022-09-13 19:08:08 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.
I tried to F8 the code but it seems quite long so I stopped.

code is here:
https://opengrok.libreoffice.org/xref/core/wizards/source/access2base/Database.xba?r=e568c9dc#891