Solved

Access and Google Drive

Posted on 2014-10-31
2
193 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

805 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