Hi,
I am having problems getting the below query to work in VBA. If I remove the "LIMIT 1" from the end it works, but how can i get it to work with the LIMIT 1 in place?
I am having problems getting the below query to work in VBA. If I remove the "LIMIT 1" from the end it works, but how can i get it to work with the LIMIT 1 in place?
Code:
Set rsCheck = db.OpenRecordset("SELECT * FROM processed_obox_Headers WHERE OboxID = " & OboxID & " AND TransmitTime BETWEEN " & Format(InstalledDate, "\#mm\/dd\/yyyy\#") & " AND " & Format(DateToCheck + 1, "\#mm\/dd\/yyyy\#") & " ORDER BY ID DESC LIMIT 1; ")