It means that you must declare your mySchedule type in the declaration section of an independant module, not in the declaration section of a form module and not in the declaration section of a class module.
Thanks for the reply. It is surprising how little information is on the net about using UDTs in MS Access. I was able to get some code using a UDT that worked, so as far as I can see, Access 2003 does support UDTs.
The code (obtained elsewhere, and modified slightly)below functions in the main (at least only)module. The types can be public or private.
Public Type dict
a As Integer
b As String
c As String
d As Integer
Private Function defineDict() As dict
defineDict.a = 1
defineDict.b = "two"
defineDict.c = "three"
defineDict.d = 4
Dim t As dict ' Set the variable
t = defineDict ' Initialize
' Prints >> "two"
t.b = "no more" ' Change a variable
Debug.Print t.b ' Prints >> "no more"
I will do some further testing, and let everyone know what I find.