【发布时间】:2022-05-06 08:39:22
【问题描述】:
我正在尝试获取 Outlook 表中的附件列表。
我试过下面的代码。它抛出一个错误。非常感谢任何帮助,因为我是 DASL 查询的新手
strFilter = "@SQL=" & "urn:schemas:httpmail:datereceived" &
" >= '" & Me.FrmDate.ToString & "' AND " &
"urn:schemas:httpmail:datereceived" &
" <= '" & Me.ToDate.ToString & "'"
'Do search and obtain Table on Inbox
Dim oT As Outlook.Table = eFolder.GetTable(strFilter) 'PLEASE IGNORE eFolder as it is declared earlier in the code
oT.Sort("[SentOn]", True)
With oT.Columns
.Add("SenderName")
.Add("Subject")
.Add("urn:schemas:httpmail:textdescription")
.Add("Attachments")
End With
【问题讨论】:
-
编辑您的问题以添加它引发的错误的文本。