I have the following code that is giving me an invalid Group by clause error:
The sql select statement works fine in VFP and only errors out here. Any ideas? Thanks in advance.
Laura Savana
Code:
Set adoPrimaryRS = New Recordset
-> adoPrimaryRS.Open "SELECT userid, max(saidtime) AS saidtime, actualtime, punchtype, description, returntime FROM punches WHERE saidtime > DATE() GROUP BY userid", db, adOpenStatic, adLockOptimistic
Laura Savana