Results 1 to 8 of 8
  1. #1
    Jamy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    36

    Object doesn't support property or method

    I have a database with a login form. After distributing the FE (incl. Access Runtime 2007 which is installed automatically) on 5 pc's everything was working, except for one PC. After clicking on the OK button in the login form it showed the error message: "Object doesn't support property or method". The PC is using XP prof SP3.



    There used to be a trail version of Access 2007 installed on this PC, after i deleted it, it still didn't work. I've reinstalled the trail and used the original db on USB stick (the BE is on server). It still showed the same error.

    I've checked the liberary (reference) settings and they were the same as on my pc, so this shouldn't be the problem.

    On all the other PC's the code is working, so I thought there's no need to include the coding. (this should be correct).

    You have any thoughts?

    Thanks in advance!

  2. #2
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    You said you checked the reference settings. If on the XP computer office 2003 is installed prehaps a previous reference is needed. You might see MISSING in the reference list. Uncheck and scroll to the right version.

    HTH

  3. #3
    Jamy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    36
    Office 2007 is installed on the computer. I've checked, the versions of the references are all the same as i have them (computer on which the db was created).

    You think there is anything besides the references what can interfere with the process?

  4. #4
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    What is the exact error message?

    Try to locate the exact position only then you can pinpoint the problem.

    Are you using a construction like this:
    Code:
        Dim oFSO
        Set oFSO = CreateObject("Scripting.FileSystemObject")
    This is an implicit object reference. You can create objects on the fly. It requires a substantial knowledge of the chosen object.
    Code:
    'Late binding:
        Dim oFSO_I As Object
        Set oFSO_I = CreateObject("Scripting.FileSystemObject")
        oFSO_I. 'No help from intellisense
     
    'Early binding:
        'Need reference to M$ Scripting Runtime
        Dim oFSO_E As FileSystemObject
        Set oFSO_E = New FileSystemObject
        oFSO_E.CopyFile 'With help from intellisense
    Compiling Late binding code will not discover errors to the object; it has no knowledge of the object.
    Compiling early binding code will discover errors/typos immediately because the object is referenced and the compiler knows what to expect.

    HTH

  5. #5
    Jamy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    36
    Especially the implicit object reference has been used. The error is exactly as shown in the title of the thread.

    The reference to scripting already has been enabled on both machines. In the code it's calling a module. That's the only difference between this event procedure and others used in db.

  6. #6
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    The FileSystemObject was only an example. Any object which was implicitly used can produce the error message.

    Add error handling where you expect the error to appear.
    You can even add errorlines to locate the exact line where to error occures.

    Again an example. Don't try to compile, doesn't work, constants are missing. Is only an example
    Code:
    Function MapSelect(strPrompt As String)
              'Variables with a "c" prefix are constants
              Dim oSHApp
              Dim oFolder   ' as folder object
    10        On Error GoTo Err_MapSelect
    20        Set oSHApp = CreateObject("Shell.Application")
    30        Set oFolder = oSHApp.BrowseForFolder(cDesktop, strPrompt, cOptions, cRootFolder)
    40        MapSelect = oFolder.ParentFolder.ParseName(oFolder.Title).Path
    Exit_MapSelect:
    50        On Error GoTo 0
    60        Exit Function
    Err_MapSelect:
    70        MsgBox "Error " & Err.Number & " (" & Err.Description & ") in line " & Erl & " in procedure MapSelect of Module Module1"
    80        Resume Exit_MapSelect
    90    Resume ' for debugging purposes
    End Function
    Enjoy!

  7. #7
    Jamy is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2010
    Posts
    36
    This is that strangest and dummest thing ever.

    The computer involved didn't have access to the BE. His user was restricted on the server. Problem solved.

  8. #8
    Coxest is offline Novice
    Windows XP Access 2000
    Join Date
    Jul 2013
    Posts
    1
    hi, Jamy, I had the same problem. Thanks so much for the solution, but I'm dont know what means by BE which u mentioned the computer involved didn't have access to the BE, his user was restricted on the server. How im going to remove the restricted user from the server to allow the user to access ? Thanks a lot !

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

Similar Threads

  1. trnsferspreadsheet method - no data
    By Lurmis in forum Programming
    Replies: 5
    Last Post: 09-24-2009, 08:51 AM
  2. Replies: 5
    Last Post: 08-05-2009, 04:07 PM
  3. Common Dialog control / ShowOpen method
    By phuile in forum Forms
    Replies: 0
    Last Post: 04-10-2009, 12:16 AM
  4. Replies: 2
    Last Post: 02-28-2009, 03:31 PM
  5. Need some support to finish DB
    By Estyl in forum Access
    Replies: 0
    Last Post: 04-22-2008, 04:34 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