i have a statement like this:
during program run time there will be a run time error '13' (type mismatch).
in debug mode, the values inside are:
ReportDay = 30 (correct)
h!txtMthNum = 2 (correct)
h!txtSqnReportYear = 2007 (correct)
TempDate = 12:00:00 AM (wrong)
TempDate value is 12:00:00 AM (wrong) instead of "30/2/2007" for TempDate.
is there anything wrong in my statement?
Code:
Dim TempDate As Date
TempDate = ReportDay & "/" & h!txtMthNum & "/" & h!txtSqnReportYear
during program run time there will be a run time error '13' (type mismatch).
in debug mode, the values inside are:
ReportDay = 30 (correct)
h!txtMthNum = 2 (correct)
h!txtSqnReportYear = 2007 (correct)
TempDate = 12:00:00 AM (wrong)
TempDate value is 12:00:00 AM (wrong) instead of "30/2/2007" for TempDate.
is there anything wrong in my statement?