B
Bill Stanton
I have a form where one of the fields
ControlSource is:
=fmtDVal([DateVal])
where fmtDVal is a public function:
Public Function fmtDVal(DVal As Date) As String
fmtDVal = MonthName(Month(DVal), True) & " " & Day(DVal)
End Function
and, DateVal is a number field returned from the
query serving as the RecordSource for the form.
fmtDVal tests okay, as in fmtDVal(37815) would
return "Jul 13" as expected.
The text box is named "DateVal".
I cannot find why I continue to get #ERROR when
I open the form.
I've checked everything suggested in the HELP text
for #ERROR, but found nothing violated.
Any ideas or suggestions?
Thanks,
Bill
ControlSource is:
=fmtDVal([DateVal])
where fmtDVal is a public function:
Public Function fmtDVal(DVal As Date) As String
fmtDVal = MonthName(Month(DVal), True) & " " & Day(DVal)
End Function
and, DateVal is a number field returned from the
query serving as the RecordSource for the form.
fmtDVal tests okay, as in fmtDVal(37815) would
return "Jul 13" as expected.
The text box is named "DateVal".
I cannot find why I continue to get #ERROR when
I open the form.
I've checked everything suggested in the HELP text
for #ERROR, but found nothing violated.
Any ideas or suggestions?
Thanks,
Bill