Access 2010打破了我显示图片的能力 [英] Access 2010 breaks my ability to display pictures

查看:103
本文介绍了Access 2010打破了我显示图片的能力的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到Office 2010后,我的代码不再有效。 Windows 2008 Server R2。存储在NAS设备上的映像映射到服务器(N :)。我已经排除了权限问题,方法是从开始菜单中选择run并在请求者中插入图像
的路径,然后打开MS查看器并显示图像。

After upgrading to Office 2010 my code no longer works. Windows 2008 Server R2. Images stored on a NAS device which is mapped to the server (N:). I have ruled out permission issues by selecting run from the start menu and inserting the path of the image in the requester and it open MS viewer and displays the image.

DB打开它显示第一个图像,但是通过DB的任何后续移动,即使我回到原始的第一个记录,图像也不会更新。我正在使用一个简单的Form_Current()并使用图像的路径更新.PICTURE。

When the DB opens it displays the first image but any subsequent movement through the DB the image does not get updated even if I go back to the original first record. I am using a simple Form_Current() and updating the .PICTURE with the path of the image.

我的图像显示在一个名为ImageWindow的对象中,而.Picture属性会在您更新时更新使用导航按钮浏览数据库。有人提到将.NavigationButton属性设置为false,加载图像并将
设置为True。这也不行。

My image is being displayed in an object called ImageWindow and the .Picture property gets updated when you navigate through the DB using the navigation buttons. Someone mentioned to turn the .NavigationButton properties to false, load the image and set them back to True. This does not work as well.

由于实际路径存储在一个名为StorageLocation的字段中的记录中,我调用StorageLocation_AfterUpdate(),在此函数中设置了一个break,我可以告诉它它永远不会被召唤。此外,我尝试将After_Update()添加到我的标题字段(图像的名称
)设置ImageWindow.Picture = Path + Title + .jpp但仍然没有。

Since the actual path is stored in the record in a field called StorageLocation I call StorageLocation_AfterUpdate() which with a break set in this function, I can tell it never gets called. Also I tried adding After_Update() to my Title field (Name of the Image) setting the ImageWindow.Picture = Path+Title+.jpp And still nothing.

我读到了由于sharepoint& Web功能某些更新功能可能无法正常工作。请告诉我这不是这样!

I read that some functions due to sharepoint & web capabilities some update functions may not work. Please tell me this is not so!

感谢任何帮助

推荐答案

jrendant写道:

jrendant wrote:


升级到Office 2010后,我的代码不再有效。 Windows 2008

服务器R2。存储在NAS设备上的映像,映射到

服务器(N :)。我已经排除了权限问题,从开始菜单中选择从
开始运行并在请求者中插入图像路径

并打开MS查看器并显示图像。



当数据库打开时,它会显示第一张图像,但是通过数据库的任何后续

移动,即使我去了,图像也不会更新br />
回到原来的第一条记录。我使用一个简单的Form_Current()

并使用图像的路径更新.PICTURE。



我的图像显示在一个名为ImageWindow的对象,当您使用

导航按钮浏览数据库时,会更新

.Picture属性。有人提到将
.NavigationButton属性变为false,加载图像并将它们设置为
回到True。这也不行。



由于实际路径存储在名为

StorageLocation的字段中的记录中,因此我调用StorageLocation_AfterUpdate()在这个函数中设置了一个
中断,我可以告诉它永远不会被调用。另外,我想
尝试将After_Update()添加到我的标题字段(图像名称)

设置ImageWindow.Picture = Path + Title + .jpp但仍然没有。

...

After upgrading to Office 2010 my code no longer works. Windows 2008
Server R2. Images stored on a NAS device which is mapped to the
server (N:). I have ruled out permission issues by selecting run from
the start menu and inserting the path of the image in the requester
and it open MS viewer and displays the image.

When the DB opens it displays the first image but any subsequent
movement through the DB the image does not get updated even if I go
back to the original first record. I am using a simple Form_Current()
and updating the .PICTURE with the path of the image.

My image is being displayed in an object called ImageWindow and the
.Picture property gets updated when you navigate through the DB using
the navigation buttons. Someone mentioned to turn the
.NavigationButton properties to false, load the image and set them
back to True. This does not work as well.

Since the actual path is stored in the record in a field called
StorageLocation I call StorageLocation_AfterUpdate() which with a
break set in this function, I can tell it never gets called. Also I
tried adding After_Update() to my Title field (Name of the Image)
setting the ImageWindow.Picture = Path+Title+.jpp And still nothing.
...

我不确定你的设置出了什么问题,但你可以用
尝试另一种无代码方法:

I'm not sure what goes wrong in your setting but mabe you could
try an alternative no-code approach:

使用A07,图片控件有一个新属性"控制源"

即你可以将它绑定到一个表或查询字段。因此,使用查询作为

记录表单的来源。在

查询中创建一个计算字段,您可以在其中将图片的路径和全名组合为单个值的
。然后将您的图片控件绑定到此计算字段。

With A07 the picture control has got a new property "Control source"
i.e. you can bind it to a table or query field. So use a query as
record source of the form. Create a calculated field in the
query where you assemble path and full name of the picture to
a single value. Then bind your picture control to this calculated field.


这篇关于Access 2010打破了我显示图片的能力的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆