troubleshooting Question

Access error code 438 - Object donesn't support this property or method

Avatar of needhelpfast569
needhelpfast569 asked on
Microsoft AccessMicrosoft Development
8 Comments1 Solution2264 ViewsLast Modified:
HI experts,

I have a Access program that I send out to different customers. In the an Access form I use the
Browse button on the form to locate files to import into the program.

This works well except for one customer that when they try to use the Browse button they get the
error code 438 - - Object donesn't support this property or method.

They can hand enter the path and it works for them but the button gives them the error.

Below is the code for the button.

On Error GoTo Err_BrowesBtn_Click
Call getThisDir
CmnDlg.initdir = ThisDir
CmnDlg.FileName = "*.txt"

        If Len(CmnDlg.FileName) > 0 Then
        [DataDirectory] = CmnDlg.FileName

        End If
    Exit Sub

    If Err.Number = 32755 Then
    'msgBox Err.Description
    Resume Exit_BrowesBtn_Click
    MsgBox ("(Error Code: " & Err.Number & ") " & Err.Description)
        Resume Exit_BrowesBtn_Click
        End If

End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros