> TextDate = DateSerial(Right(Me!CAD_LDL_Date.Value, 4), _
> Left(Me!CAD_LDL_Date.Value, 2), _
> Mid(Me!CAD_LDL_Date.Value, 3, 2))
This is probably where your error message is coming from. You are trying to
assign a Null value to a date variable. One option would be to substitute a
value if the result is Null.
Example:
TextDate = Nz(DateSerial(Right(Me!CAD_LDL_Date.Value, 4), _
Left(Me!CAD_LDL_Date.Value, 2), _
Mid(Me!CAD_LDL_Date.Value, 3, 2)), Date)
This will pass today's date if the value is Null. Another option would be to
exit the routine if the textbox is Null.
Example:
If IsNull(Me!CAD_LDL_Date) Then Exit Sub
This is probably the better option if you want to allow the user to clear
the textbox and continue. You would place this before the "TextDate ="
statement.

Signature
Wayne Morgan
MS Access MVP
> Hi Ken,
>
[quoted text clipped - 31 lines]
>
> Thanks.
melwester - 08 Apr 2005 14:37 GMT
Thank you!!!!! This works. I used "If IsNull(Me!CAD_LDL_Date) Then Exit
Sub" before TextDate =
Thank you so much!!!
> > TextDate = DateSerial(Right(Me!CAD_LDL_Date.Value, 4), _
> > Left(Me!CAD_LDL_Date.Value, 2), _
[quoted text clipped - 54 lines]
> >
> > Thanks.