MS访问:附件类型符号显示黑色背景
我有一个小型数据库项目,用户可以将文件附加到记录。主要是PDF和Word Docs。我正在使用访问提供的附件类型字段,因为我想更熟悉它们。我有一个连续的表单,该表单使用图片/符号
视图选项显示附件字段。在大多数情况下,但并非总是如此,依恋符号显示了其符号后面的黑色背景。黑色背景不涵盖整个字段,而仅覆盖附件类型的图片(word,pdf等)。该字段本身设置为透明,这是我的行突出显示工作的必要条件。有人知道为什么会发生这种情况吗?是一个错误吗?某种方法可以修复它?当我首次设置它时,它奏效了,但是重新启动我的计算机并重新开放项目后,它们变成了黑色,现在被卡住了。我稍后出于某种原因将它们删除,然后重新整理了整个过程,它似乎有效,但是在重新开始后,它再次变黑了。使用视图设置图片/符号
和符号
之间没有区别。
视觉辅助:
更新1:
黑色背景似乎是随机的。我将视图选项设置为paperclip
,重新启动访问,然后将它们设置为picture/symber
,现在我得到了:
关闭并打开该文件似乎使背景变为黑色。更改视图类型之间的来回介于之间可以修复一些,但并非总是如此。...我真的不确定发生了什么。
更新2:
这个问题似乎不受透明设置的影响。更改场的背景颜色也没有影响。当从头开始制作新表单并将附件
键入字段时,问题也持续存在。它也从一台PC转移到另一台PC,因此,除非两者在Windows安装中都有相同的问题,否则我也不认为这是根本原因。压缩&维修没有帮助。我每个记录只使用一个附加文件。
更新3:
我一直没有运气再现问题。在大多数情况下,我估计的大约80%的问题仍然存在。有时候,在启动访问时,该问题是针对图标或PDF图标的一部分解决的。在某些日子里,如下图所示,所有图标都解决了问题。几乎总是,在关闭和开放访问之后,所有图标都会立即重新出现。仅关闭并打开表格并保持文件打开是可以的,问题仍然可以解决。真的不确定该怎么做。
我的访问版本:
版本2205构建16.0.15225.20028
我的Windows安装:
Microsoft Windows 10 pro
I have a small database project where users can attach files to records. Mostly pdf and word docs. I am using the attachment type fields that access provides because I want to get more familiar with them. I have a continuous form that shows the attachment field using the Picture/Symbol
view option. Most of the time, but strangely not always, the attachment symbol shows this black background behind its symbol. The black background does not cover the whole field but rather only the picture for the attachment type (Word, PDF etc.). The field itself is set to transparent, which is neccesary for my row highlighting to work. Does anyone know why this is happening? Is it a bug? Some way to fix it? It had worked when I had first set it up but upon restarting my computer and reopening the project they turned black and are now stuck that way. I removed them later for some reason and re-did the whole thing, upon which it seemingly worked but after restarting it went black again. There is no difference between using the view settings Picture/Symbol
and Symbol
.
Visual Aid:
Update 1:
The black backgrounds are seemingly random. I set the view option to Paperclip
, restarted access, then set them to Picture/Symbol
again and now I get this:
Closing and opening the file appears to turn the backgrounds black. Changing the view type back and forth inbetween can fix some, but not always.... I'm really not sure what's going on.
Update 2:
The issue is seemingly not affected by transparancy settings. Changing the Background color of the field has no impact either. The issue also persists when making a new form from scratch and adding the Attachment
type field to it. It also carries over from one pc to another, so unless both have the same issue in their windows installation I don't think that is the root cause either. Compress & Repair did not help. I am only using one attached file per record.
Update 3:
I have had no luck consistently reproducing the issue. Most of the time, about 80% of it I am estimating, the issue persists. Some days, when launching access, the issue is resolved partially for either the word icon, or the pdf icon. On some days the issue is resolved for all icons as in the picture below. Almost always, after closing and opening access, the issue will immediately reappear for all icons. Closing and opening the form only and keeping the file open is fine, the issue stays resolved. Really not sure how to go about this.
My Access version:
Version 2205 Build 16.0.15225.20028
My Windows install:
Microsoft Windows 10 Pro
10.0.19044 Build 19044
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,已更新到Windows 11,并解决了问题。不知道到底出了什么问题,但事实证明这与Windows安装有关。因此,我的猜测是Win 10中的某种错误,因为它在两台不同的机器上都在赢得胜利10。
So, updated to windows 11 and the issue is solved. No idea what was wrong exactly but it turns out it was related to the windows install. So, some kind of a bug in Win 10 is my guess, since it was happening on two different machines both running win 10.