Knowing When to Use the Windows API

 < Day Day Up > 

The hardest thing about using the Windows API is not understanding how to use it but knowing when to use it. A few guidelines:

  • Use the Windows API only when you must. If there's a VBA way to do something, don't spend time looking for an API alternative.

  • Use the Windows API to manipulate applications other than Access.

  • Use the Windows API to retrieve information from Windows itself.

  • Use the Windows API to interact with things (such as network messages) that are inaccessible from VBA.

If you get seriously interested in advanced VBA programming, there are several books available that discuss the Windows API in depth. A good starting point is Dan Appleman's Visual Basic Programmer's Guide to the Win32API (Sams, 1999).

     < Day Day Up > 


    Automating Microsoft Access with VBA
    Automating Microsoft Access with VBA
    ISBN: 0789732440
    EAN: 2147483647
    Year: 2003
    Pages: 186

    Similar book on Amazon

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net