The following function works in one computer with XP. But it doesn’t work with windows 2000.
Public Function FormatDateForSQL(ByVal DateToBeFormatted As Date) As String
FormatDateForSQL = "#" & Format(DateToBeFormatted, "mm-dd-yyyy Hh:Nn") & "#"
End Function
It says:
“Compile error :
can’t find project or library”
and it highlights the word Format.
Does any one know why?
---------------------------------
Your help is much appreciated, R.
---------------------------------
Public Function FormatDateForSQL(ByVal DateToBeFormatted As Date) As String
FormatDateForSQL = "#" & Format(DateToBeFormatted, "mm-dd-yyyy Hh:Nn") & "#"
End Function
It says:
“Compile error :
can’t find project or library”
and it highlights the word Format.
Does any one know why?
---------------------------------
Your help is much appreciated, R.
---------------------------------