Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google maps Access VBA无法将街景加载到图像控件_Google Maps_Ms Access_Google Maps Api 3_Vba - Fatal编程技术网

Google maps Access VBA无法将街景加载到图像控件

Google maps Access VBA无法将街景加载到图像控件,google-maps,ms-access,google-maps-api-3,vba,Google Maps,Ms Access,Google Maps Api 3,Vba,如果我在Excel电子表格上放置形状并运行以下VBA代码: Sheets("Sheet1").Shapes("myShape").Fill.UserPicture "http://maps.googleapis.com/maps/api/streetview?&location=51.499473,-0.12902&size=256x256&heading=0&sensor=false" 然后,streetview图像立即显示在形状中 现在,快进到我尝试在MS

如果我在Excel电子表格上放置形状并运行以下VBA代码:

Sheets("Sheet1").Shapes("myShape").Fill.UserPicture "http://maps.googleapis.com/maps/api/streetview?&location=51.499473,-0.12902&size=256x256&heading=0&sensor=false"
然后,
streetview
图像立即显示在形状中

现在,快进到我尝试在MS Access中执行相同的操作-我在Access窗体上放置了一个图像控件并运行以下操作:

Me.myImage.Picture = LoadPicture("http://maps.googleapis.com/maps/api/streetview?&location=51.499473,-0.12902&size=256x256&heading=0&sensor=false")
我得到一个错误:

Microsoft Access can't open the file [then shows URL as above]
我似乎也不能使用未绑定的对象框架,URL的各种排列也没有帮助

我知道我可以使用Access Web浏览器控件,但我不想这样做

我还知道如何将映像下载到C驱动器上的临时文件中,然后将其加载到映像控件中。但我想知道,如果可能的话,如何做到这一点,在1步(避免临时文件)

那么,关于如何将
streetview
图像直接加载到访问表单上的图像控件中,有什么想法吗


感谢堆

问题是您使用了错误的控件。使用WebBrowser控件,它应该对您有效。在Access 2007+中: