English 中文(简体)
G. 与全球任命挂钩的任用 ID using VBA?
原标题:Get AppointmentItem with GlobalAppointmentID using VBA?

根据[这一]员额,我似乎无法对任命作出变数。 项目采用Restrict或 Find方法使用全球指定信息数据库。 这个员额似乎正在使用C#。 是否有可能通过世行采取另一种方式? 我继续犯错误“条件无效”。 难道这告诉我我,我可以不以这一条件为依据,或者在我的有条件发言中我有同学错误吗?

我的法典目前对此持类似看法。

Public Function RescheduleAppointment(oNewDate As Date, ApptID As String) As Boolean
        Dim oAppt As Object
        oAppt = GetAppointment(ApptID)
        With oAppt
            .Edit
            .Start = oNewDate
            .Update
        End With
End Function
Private Function GetAppointment(OTLGAID As String) As AppointmentItem       
        Dim oAppt As Object
        Dim fdrCalendar As Object
        Dim oApptItems As Object
         Initiate our refernce to the public folder in outlook.
        Set fdrCalendar = CreateConnection
         Start creating our Appointment
        Set oApptItems = fdrCalendar.Items
        
        Set GetAppointment = oApptItems.Find("GlobalAppointmentID =  " & OTLGAID & " ")      
  
        Set oAppt = Nothing
        Set fdrCalendar = Nothing
        Set oApptItems = Nothing
    End Function

Another way around it is to check each item individually (inefficient). But if the above won t work, is there a way to call Find or Restrict using wildcards if my subject line also contains a unique value in each appointment? [1]: Get Outlook AppointmentItem using GlobalAppointmentID

问题回答

https://stackoverflow.com/a/70306955/332059” OMOM不会让你寻找双亲财产,你需要使用扩展的MAPI(C++或Delphi)或红empt(我是作者)。

当然,你可以使用野心和@SQL syntax查询任命主题。 以下查询:<代码>PR_NORMALIZED_SUBJECT。

oApptItems.Find("@SQL=""http://schemas.microsoft.com/mapi/proptag/0x0E1D001F"" LIKE  Monthly%  ")




相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签