aadconsulting.cjb.net 
 

FreeAccess Newsletter Foundation Edition - September 2001

  Free Access Tools and Databases AAD CONSULTING Sydney Australia_ | _Advanced Access Development
     
What's New at FreeAccess?

Ezy Reporter 1.01
Easily create complex reports in a variety of formats: datasheet, Access report, Excel, RTF, ASP, and HTML. An add code options allows developers to add Ezy Reporter to their applications.

Ezy Documenter 4.2
Fast documentation of Access databases.

Check out the easy way to create switchboards
Ezy Switchboard 1.1
Visually create and maintain Access switchboards.

Smart Form Wizard 3.0
Build ready to run Access forms with navigation and autofiltering

Vizual Dezigner 12.1
The ultimate Access add-in - now includes the latest versions of Ezy Reporter and the Smart Form Wizard.

 Phantom Microsoft Files - for subscribers only

Hard to find files that are no longer on the Microsoft web site - new files in each newsletter

Sample Databases
Access97 Neatcode Samples Database
Access97 Forms Samples Database

White Paper
Jet 3.5 Performance Overview and Optimization Techniques White Paper

The extraction password for each zip file was included in the subscriber mailing of 31Augt2001.

 Hot downloads!

Free Active-X Controls

Axsoft provides a wide range of free .ocx's

VFOutBar is an easy-to-use third-party .ocx that allows you to add an Outlook-style navigation bar to your database. In Access, register the control in the ActiveX Controls dialog opened from Tools, ActiveX Controls in the Database Window.

 Code samples

Replace String
A neat function from Vincent Billard that you can use in Access97, which does not have the native Replace function available in Access2000. Visit Vincent's web site at http://www.rezo.net/skrol29 to download his great V97/V2000 Access add-in.

Public Function ReplaceString(Str As String, WhatStr As String, WithStr As String) As String
'Vincent BILLARD
'skrol29@freesurf.fr

Dim s As String
Dim i As Integer

s = Str
i = 1

If Len(WhatStr) > 0 Then
Do Until i > Len(s)
If Mid$(s, i, Len(WhatStr)) = WhatStr Then
s = Left$(s, i - 1) & WithStr & Mid$(s, i + Len(WhatStr))
i = i + Len(WithStr)
Else
i = i + 1
End If
Loop
End If

aad_ReplaceString = s

End Function

Get rid of screen-flicker!
The Access command DoCmd.Echo rarely works. Use the Windows API instead. Source code from Christine Solomon's book, "Microsoft Office97 Developer's Handbook".

1. Add the following declaration to a code module:

'This prevents screen redraw. It's especially handy when using OLE automation.
Declare Function LockWindowUpdate Lib "user32" _
(ByVal hwndLock As Long) As Long

2. Add the this function:

Public Function fnEcho(intFlag As Integer)
Dim hwnd As Long
Dim lngRetVal As Long
Dim hwndPrevious As Long

Select Case intFlag

'Echo OFF.
Case 0

'Get the handle to this Access window.
hwnd = FindWindowByClass("OMAIN", 0&)

'Prevent updates to this window.
lngRetVal = LockWindowUpdate(hwnd)

'Echo ON.
Case 1
lngRetVal = LockWindowUpdate(0&)
End Select

End Function

3. Call the function in your code as follows. Don't forget to turn the echo back on in your error-trapping.

fnEcho (0) ' Turn echo off

fnEcho (1) ' Turn echo on

 Useful links

Access Tutorials
Smart Access Home
GR-FX - Access

 Coming soon at FreeAccess...

Table Warehouse Access Add-In
The ultimate source for pre-designed Access tables!

A new Access HRIS database application
A comprehensive leave and training tracker

A new version of the Project Management database
incorporating daily time management

New versions of:
Vizual Einstein
Web Tarantula 

Top
 
CONTENTS:
What's New
Phantom Microsoft files
Hot downloads!
Code samples
Useful links
Coming soon...

Subscription to this newsletter is free.

This newsletter may contain links to sites on the Internet which are owned and operated by third parties. AAD CONSULTING is not responsible for the content of any such third-party site.

Any files are provided "as is", without warranty of any kind. AAD CONSULTING does not assume any liability for use or the consequences of use.

To unsubscribe from this mailing list, enter your email address:

Have questions or comments?
Send them to us.

Access is a trademark of Microsoft Corporation.

©2001 Anthony D'Ambra.
All rights reserved.

Top