Steps to customise the Ribbon in Access only are summarised below
- Open new or existing Access document
- Check if a database table
USysRibbons
exists first - If not, then create a new table
USysRibbons
- New Table Columns =
ID (AutoNumber) , RibbonName (Short Text) , RibbonXml (Long Text)
- Insert a new row into table
USysRibbons , RibbonName = "COM_1"
- Update the new row by copying contents of file
RIBBON_ACCESS.xml
into columnRibbonXml
- Save, Close and Re-Open the Access document
- Navigate to File > Options > Current Database > Ribbon and Toolbar Options > Ribbon Name
- Select COM_1 and click OK
- Save, Close and Re-Open the Access document again
- Check that a new Ribbon tab COM Port 1 is now present
- Import modules SERIAL_PORT_VBA and SERIAL_PORT_RIBBON if not done previously
- Test to ensure that Ribbon icons work and COM Port operation is successful