【问题标题】:Microsoft Access 2016 form doesn't display photoMicrosoft Access 2016 表单不显示照片
【发布时间】:2015-12-08 23:28:05
【问题描述】:

我有一个显示用户照片的访问表单。当我点击照片区域时,它也让我选择照片。昨天,我已将访问权限从 2010 升级到 2016。我使用的是 Microsoft Office 2016 plus。现在,照片没有显示。它让我选择照片,但它们没有显示。我使用的代码如下。

Private Sub Photo_Click()
pl = PLFirst()
If IsNull(pl) Then
    MsgBox "First select the person.", vbExclamation, "My sample project"
    Exit Sub
End If

Set fd = Application.FileDialog(msoFileDialogFilePicker)
fd.InitialFileName = GetValue("ScanFolder") & ""
fd.Title = "Select Photo"
fd.Filters.Clear
fd.Filters.Add "JPG or JPEG Images", "*.jpg; *.jpeg"

fd.show
If fd.SelectedItems.Count > 0 Then
    If PhotoAddress & "" = "" Then
        PhotoAddress = GetValue("PhotoAddress")
    End If

    FileCopy fd.SelectedItems(1), PhotoAddress & "\" & PeopleList.Column(1) & ".jpg"
End If
Set fd = Nothing
UpdatePicture
  End Sub

我不知道是代码或兼容性问题。任何帮助将不胜感激。

【问题讨论】:

    标签: vba ms-access


    【解决方案1】:

    this的帖子: 显然微软会解决这个问题,但作为一种解决方法,您可以将当前数据库、图片属性存储格式设置为“保留源图像格式”。

    【讨论】:

    • 行得通!我临时更改了设置。所以我会等待微软团队修复这个错误。谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多