Results 1 to 3 of 3
  1. #1
    wgreynol is offline Novice
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    1

    Problem with Environ function in 2003 SP3

    I inherited a database created by another person when we had Access 2003 SP2. Everything worked fine. Now we have been re-imaged with SP3. All of a sudden on a main form two drop down boxes are not populated. When investigating, I saw that when I open the back end database I now get this error
    Compile Error: Can't find project or library



    The code that is highlighted is this

    Private Sub Form_Load()
    Dim intVal As Integer
    Dim strDBType As String
    DoCmd.Hourglass True
    intMaxAttempts = 3
    intMaxMinutes = 10
    strComputerName = Environ("Computername")
    strComputerLogin = NetUserID
    'prevent access to database window and F11 if mde
    strDBType = LCase(Right(CurrentDb.Name, 3))
    If strDBType = "mde" Then
    intVal = ChangeProperty("AllowByPassKey", dbBoolean, False)
    intVal = ChangeProperty("AllowSpecialKeys", dbBoolean, False)
    End If
    'destroy links to database containing audit trail
    DestroyLink "FormTracking"
    DestroyLink "FieldTracking"
    DoCmd.Hourglass False
    End Sub

    Can anyone help me with this?

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Did you just misstype when you state opening the BackEnd rather than the FrontEnd?

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    there has been issues with sp3 back to the stone age. I remember when Bob Larson posted the link about the hotfix available after the issues were discovered by industry professionals.


    Here is an example KB from Microsoft about the hotfixes available and the issues that SP3 brought about: http://support.microsoft.com/kb/945674

Please reply to this thread with any new information or opinions.

Similar Threads

  1. VBA Function problem
    By smikkelsen in forum Programming
    Replies: 5
    Last Post: 07-16-2010, 07:46 AM
  2. Problem with Access 2003 database after moving PCs
    By ValiantSaint in forum Access
    Replies: 2
    Last Post: 06-25-2010, 01:55 AM
  3. dlookup function problem
    By bdaniel in forum Programming
    Replies: 3
    Last Post: 04-26-2010, 05:55 AM
  4. access 2003 on vista Out of Memory Problem
    By skbrede in forum Access
    Replies: 0
    Last Post: 07-25-2009, 08:28 AM
  5. I have Problem in processing Dlookup Function
    By Katada in forum Programming
    Replies: 2
    Last Post: 04-23-2006, 12:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums