I have a recordset that works fine in my instance of Microsoft Access, but when I try it out on another computer, it is failing.
I already have plenty of recordsets running in both versions of my Access application. Both are on Access 2010, but they likely have different drivers.
The code looks like this:
Set rsWeek = CurrentDb.OpenRecordset("SELECT * FROM [Timecards]
WHERE employeeID = " & empID & " AND workDate BETWEEN #" & Me.Text23
& "# AND #" & Me.Text25 & "#", dbOpenSnapshot)
I've used a MsgBox to confirm all of my variables work. The code works as planned on my first computer, but the second one simply fails with a generic "On Click" error.
It appears the issue here is the BETWEEN part, since this is the only time I've ever used BETWEEN.
Is there some sort of SQL driver that my second computer needs to be able to run this query with BETWEEN in it?