O'Reilly logo

F. Scott Barker's Microsoft® Access 2000 Power Programming by F. Scott Barker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

PERFORMING STARTUP SYSTEM CHECKS

The routine for performing startup system routines is ap_AppInit (see Listing 27.1). All routines shown in this chapter can be found in the modGlobalUtilities module of VideoApp(ADO).mdb, which can be found in the \Examples folder on the CD-ROM.

Listing 27.1. VideoApp(ADO).mdb: The Main Startup System Checking Routine
 Function ap_AppInit() Dim cnnLocal As New ADODB.Connection Dim rstSharedTables As New ADODB.Recordset Dim lngCurrError As Long, strCurrError As String DoEvents DoCmd.Echo True, "Checking Connections..." flgLeaveApplication = False Set cnnLocal = CurrentProject.Connection ap_InitializeDBProps cnnLocal '-- Section 2: User requested to logout, quit the application If ap_LogOutCheck(pstrBackEndPath) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required