Sorry, Max ... since I'm a C# programmer I don't know all the VB syntax. It looks like Rob gave you a good answer and one that I thought about giving myself, except for the fact that I was under the impression that VB.NET did not support overloaded methods ... but I guess I was wrong.
~~Bonnie
>Thanks Bonnie,
>
>What I was trying to convey was that I was trying to code the default clause on an option VB.NET paramater of DateTime type such as:
> Private Sub MySub(Optional ByVal MyParm as DateTime = DateTime.MinValue) as Integer
>or
> Private Sub MySub(Optional ByVal MyParm as DateTime = New DateTime DateTime.MinValue)) as Integer
>
>Neither of these will work of course because DateTime is a struct rather than an object and so cannot be an optional parm.
>
>Max Fillmore