Sql statement with datediff

Joy83

Member
Local time
Today, 04:36
Joined
Jan 9, 2020
Messages
116
I have sql query
Datediff(“m”,date1,date2)
How to replace the “”
Access is expecting the end of statement with this syntax
 
Show the sql code? (within code tags)
 
Thanks it worked with single quote
You're welcome.

As a side note, whenever you get that message that is the reason. With the Statement you need to change the double quotes to single quotes and only have the double quotes for line continuation. It was thinking your double quotes were at the end of the line and\or Statement and obviously it was not.
 

Users who are viewing this thread

Back
Top Bottom