Question
I am developing a Microsoft Access program (VBA/DAO). Have inserted the phGantX object on a form. The tree object displays names of scheduled events. Rows on the Gantt object display an icon for the specific day the event occurs. When I drag and drop the icon on the Gantt object, I would like to update the database with the new date. What events are triggered when I click on/drag/drop the icon on the Gantt object. I have tried multiple ways and can’t figure it out. Please help.
Answer
When you drag something in Access to the Gantt the events that come into play are these:
IphGantX3.OnOLEDrop
IphGantX3.OnOLEDragOver
IphGantX3.OnOLEDragLeave
IphGantX3.OnOLEDragEnter
You need to translate the DD-coordinates to local before you send them in to any Gantt specific function.