I have to get onto something else, but here is the design for those who want to play...
Table: Event
EVENT.MAT_ID
EVENT.STAFF,
EVENT.[DESC$],
EVENT.MEMO,
EVENT.STATUS,
EVENT.CCODE,
EVENT.ASTAFF,
EVENT.MAT_ID,
EVENT.SYSID,
EVENT.DATE
EVENT.GRPID
Table: Matter
MATTER.SYSID
MATTER.MAT_REF,
Table: ToDo
TODO.MAT_ID
TODO.DATE
TODO.GRPID
TODO.STAFF,
TODO.[DESC$],
TODO.MEMO,
TODO.MAT_REF,
TODO.STATUS,
TODO.CCODE,
TODO.ASTAFF,
TODO.MAT_ID,
TODO.SYSID,
TODO.DATE
Relations:
MATTER.SYSID = EVENT.MAT_ID
MATTER.SYSID = TODO.MAT_ID
I suspect SYSID is the primary key for Matter
...and
Matter : Event is
one-to-many
One Matter can have many Events
Matter : ToDo
one-to-many
One Matter can have many ToDo items
What is ambigous is...
CVDate([date]-36161) AS Dates,
[times] AS [Begin Time],
[time]/8640000 AS Times,
Also, note the use of reserved names -- Date and Time -- used for naming of fields.
I suspect dlene wants to
List Matter and all respective Events and ToDo items by date.