Sql statement with datediff (1 Viewer)

Joy83

Member
Local time
Yesterday, 19:23
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
 

Gasman

Enthusiastic Amateur
Local time
Today, 03:23
Joined
Sep 21, 2011
Messages
14,260
Show the sql code? (within code tags)
 

GinaWhipp

AWF VIP
Local time
Yesterday, 22:23
Joined
Jun 21, 2011
Messages
5,899
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

Top Bottom