Microsoft Access examples and tutorials

From Wiki @ Karl Jones dot com
Revision as of 06:36, 24 May 2016 by Karl Jones (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article lists examples and tutorials for Microsoft Access.

The list is not comprehensive -- I add links and examples as I need them.

Treeview and listview problems in Access 2013

Steps:

Copied MsComCtl.ocx from my Windows 7 computer with Office 2010.

Placed in C:\Windows\SysWow64 folder, AND c:\Windows\System32 folder

Registered it.

Decompiled, and recompiled my Access application.

Deleted treeview control from form, and added a “new” treeview control.

Also:

Finding the MSComctlLib on a 64 Bit version of Windows and setting the reference with code.

What this code does is open the database check which version of Access computer is running (32 or 64 Bit), then checks what version of Windows (32 or 64 Bit) then removes the reference to the MSComctlLib (MSCOMCTL.OCX), then sets the reference to the MSComctlLib (MSCOMCTL.OCX) from the correct location.

Why would anyone need to do this is because the reference is located in different folders depending on which version of Windows the computer is running.

You need to check which version of Access so you use the proper code to call the API’s used.

This will eliminate errors on different computer configurations saving confusion and the need to fix the missing reference manually.

I have attached the code in a text document used to create a demo.

See:

Database and recordset

Recordsets

Select records

Insert, Update, Delete records

Subqueries

Autonumber

Queries and filters

Form controls

TreeView

Use TreeView to display and manage hierarchal data.

See also:

Listbox

Use Listbox to display and manage lists data (non-hierarchal)

Subforms properties

Miscellaneous

Data types

Data Structures

Arrays

Strings

Utilities

See also