

InterviewSolution
1. |
Solve : Comparing Date Values between Excel and Access (ADO)? |
Answer» Is there a simple way to MAKE identical the date format between EXCEL and Access ... i'm assuming there must be, but I can't seem to figure it out. dteTo is a Short-Date formatted cell in Excel I'm pretty sure the datatypes are mismatched and that by using the text property, something got messed up. Try using dteTo = Range("D28").Value You might try using Range("D28").Value directly in the DateDiff function or as a last resort using the CDate function to guarantee all the FIELDS are converted to dates. Good luck. PS. VB and VBA are not very forgiving when it comes to mismatched datatypes. |
|