Showing posts with label MS Access. Show all posts
Showing posts with label MS Access. Show all posts

Thursday, June 14, 2012

ActiveX Controls to Enhance MS Access Functionality

ActiveX is a Microsoft technology that offers components to insert into programs or web pages, similar to JAVA applets.  Here's Microsoft's description of ActiveX Controls (http://support.microsoft.com/kb/154544): 

ActiveX controls, formerly known as OLE controls or OCX controls, are components (or objects) that you can insert into a Web page or other program so that you can reuse packaged functionality that someone else programmed. For example, the ActiveX controls that are included with Internet Explorer enable you to enhance your Web pages with sophisticated formatting features and animation. 

ActiveX is an open integration platform that provides developers, users, and Web producers a fast and easy way to create integrated programs and content for the Internet and Intranets. Using ActiveX, you can easily insert multimedia effects, interactive objects, and sophisticated programs into a Web page, creating a user experience comparable to that of high quality multimedia CD-ROM titles.

In other words, ActiveX controls are mini-programs that can be inserted into, say an MS Access form, to add functionality.  File extensions of controls are dll (direct link library) or OCX (object linking and embedding).  There are many pre-designed ActiveX controls available for free or little cost.  Here are a few examples:

Adobe PDF Viewer Control
This control allows you to embed and control the view of PDF's directly in your form. 

Barcode Control
This type of ActiveX control can be inserted into a report or form and bound to data field(s).

File Download Controls
You can download files directly from the internet to the hard drive, with a progress notification with this type of control.

Document Management Controls
Microsoft Office Document Imaging 2003 (MODI) adds programmability features to the document scanning and viewing tools.  This is a great tool but no longer included with MS Access 2010 (http://support.microsoft.com/kb/982760).

Before using a custom control, it must be registered in your install of MS Access.  To do this, open the visual basic editor (Ctrl-G), select "Tools," "References" and "Browse" to your dll or ocx file, and select it.  If  you have registered the control correctly, in a form or report design mode, select "Design" and "ActiveX Controls" you will see and be able add the control. 

ActiveX Controls can be controlled by modifying the controls "Properties," or writing event handlers in VBA depending on the control.  

One example of how I have used a custom control is in a data entry application to view embedded PDF's.  I added hot-key enabled command buttons on my form that have onclick event procedures to zoom or page through the PDF.  I thus give the keyer the ability to quickly, (without using the mouse) control the navigation and viewability of the PDF and thus speed up data entry.  Of course we could open the PDF in a separate viewer but we would then have to use the mouse to control the zooming and paging.  When you have repetitive data entry, this little option saves time and ultimately, money. 

If you have the need to add functionality to your application, an internet search will expose many available controls.

Tuesday, May 29, 2012

MS Access - A Cost Effective, Powerful Business Tool

MS Access is a powerful low-cost business tool that offers excellent ROI and fills many and varied business needs. 

As the most popular database program in the world, MS Access allows the creation of very sophisticated multi-user applications with a shared back-end data source, simple desktop data manipulation, or adhoc reporting solutions from a variety of data sources.  

I have not found a data source that I could not link MS Access to including SQL Server, Oracle, MySQL, MS Excel, Word, dBase, etc.  Because of this, an Access developer has the ability to develop and deploy real-time front-end solutions that report critical business intelligence from one or more of these sources.  These solutions can either be one-offs or custom menu-driven applications that offer the selection of multiple criteria, grouping, sorting and visual representation. 

With the Access Query Designer, complex multi-table queries can be created. Queries can also use VBA or user defined functions directly in queries for sophisticated analysis and updates.

The reporting ability in MS Access ranges from simple data querying to complex grouped, sorted and summarized reports with charts, graphs and custom VBA functions.  Include sub-reports to further show multi-table relationships if needed.  Here's a few examples:





MS Access 2010 also includes the ability to design and deploy database applications to web hosted Sharepoint sites.  These can be totally browser based or desktop front-ends linked to Sharepoint lists.  Though there are size limitations, this allows the flexibility to have remote users share, add or update all or some business data.  Note the example of Sharepoint hosted reporting design:


Bottom Line Cost Advantage

MS Access offers a low-cost solution for handling data and automating business processes.  Microsoft even makes available a free runtime that alleviates the cost of buying Access for every end user. 
For many business needs, MS Access is a cost-effective and powerful tool!