Solved

Access and Google Drive

Posted on 2014-10-31
2
194 Views
Last Modified: 2014-11-06
I am using the following code to import XML files into an Access table:

    Set fd = Application.FileDialog(msoFileDialogFilePicker)
    With fd
        .InitialFileName = "c:\sample\*.xml"
        If .Show = -1 Then
            For Each vrtSelectedItem In .SelectedItems
                Application.ImportXML _
                    DataSource:=vrtSelectedItem, _
                    ImportOptions:=acStructureAndData
             Next vrtSelectedItem
        Else
        End If
    End With
    Set fd = Nothing

Open in new window


This has been working perfectly.  But now instead of having the user navigate to a folder location on their computer which is what the above code does, they need to somehow navigate to a location on Google Drive.  

Can this even be done and if so has anyone done it before?

--Steve
0
Comment
Question by:SteveL13
2 Comments
 
LVL 9

Expert Comment

by:bas2754
ID: 40416436
Just a shot in the dark, but do they have the Google drive synching to their local computer, if so you should be able to just change the path.  If you need to pull directly via the Web, I am not sure you will be able to do that with the basic version and someone more advanced than myself will need to point you to where to find the code for the API to do it.
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 40416439
I believe you can "map" the Google drive to be a local drive (like you'd map a network drive, for instance). If you can do that, your code should work as is.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question