Lo... I get the following error:
=================================================
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
=================================================
On this code:
=================================================
DateTime = DateAdd("h", -5, Now)
rsToday.Open "SELECT Date FROM Messages WHERE ForumID = " & rsForums("ForumID" & " AND DateDiff(d, Date, #" & DateTime & "#) = 0", Conn, adOpenStatic
=================================================
I have no idea what's causing it, can someone offer any help?
=================================================
[Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1.
=================================================
On this code:
=================================================
DateTime = DateAdd("h", -5, Now)
rsToday.Open "SELECT Date FROM Messages WHERE ForumID = " & rsForums("ForumID" & " AND DateDiff(d, Date, #" & DateTime & "#) = 0", Conn, adOpenStatic
=================================================
I have no idea what's causing it, can someone offer any help?