I decided that I needed to relocate the database into a different folder, so I simply moved it and updated the shortcut I was using to access it. I then realised that it was still registered in its old location, so I deleted the old registration and added a new one in the new location.
But now my macros appear unable to connect to the database. Or, more accurately
Code: Select all
oConnection = ThisDataBaseDocument.CurrentController.ActiveConnectionCode: Select all
oStatement = ThisDataBaseDocument.CurrentController.ActiveConnection.CreateStatementI see from this thread http://user.services.openoffice.org/en/ ... t+register Drew Jensen suggests that moving a database can be problematical, but what do I need to do to clean this up? Although this is a one-off database, it does use Sun Report Builder to create Writer reports, so presumably I do need the database registered?
Thanks