Gustav Brock
gustav at cactus.dk
Wed Oct 16 09:58:30 CDT 2013
Hi Mark Dim oSync As Object ? /gustav -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] På vegne af Mark Simms Sendt: 16. oktober 2013 14:45 Til: 'Access Developers discussion and problem solving' Emne: [AccessD] Interesting VBA problem I've got an AC2010 app that must use late-binding. I'm an instantiating an Outlook session. However, I need to reference a SyncObject WithEvents. However, what do I Dim it as ? Private oSync WithEvents as Outlook.SyncObject Tried Private oSync WithEvents as EventObject By the compiler complained ! Dim oSync as Access.CustomControl That worked, but the call back will probably fail, correct ? Someone said it might work if I: Set oSync = CreateObject("Outlook.SyncObject")