Access2Base/text/sbasic/guide/access2base.xhpAccess2Base topic first insertion, by Jean-Pierre LedureNoneAccess2BaseAccess2BaseWhat is Access2Base ?Access2Base is a LibreOffice Basic library of macros for (business or personal) application developers and advanced users. It is one of the libraries stored in "LibreOffice macros and dialogs".The provided macros implement functionalities, all directly inspired by Microsoft Access. The macros are callable from a LibreOffice Base application only.The API provided by Access2Base is intended to be more concise, intuitive and easy to learn than the standard UNO API (API = Application Programming Interface).The library is documented online on http://www.access2base.comThe implemented macros include:a simplified and extensible API for forms, dialogs and controls manipulations similar with the MSAccess object modelan API for database access with the table, query, recordset and field objectsa number of actions with a syntax identical to their corresponding MSAccess macros/actionsthe DLookup, DSum, ... database functionsthe support of the shortcut notations like Forms!myForm!myControl+a consistent errors and exceptions handlerfacilities for programming form, dialog and control eventsthe support of both embedded forms and standalone (Writer) formsCompare Access2Base with MSAccess VBAREM Open a form ... OpenForm("myForm") REM Move a form to new left-top coordinates ... Dim ofForm As Object ' In VBA => Dim ofForm As Form Set ofForm = Forms("myForm") ofForm.Move(100, 200) REM Get the value of a control ... Dim ocControl As Object ocControl = ofForm.Controls("myControl") MsgBox ocControl.Value REM Hide a control ... ocControl.Visible = False REM ... or alternatively ... setValue("Forms!myForm!myControl.Visible", False) ' Shortcut notation ' In VBA => Forms!myForm!myControl.Visible = False