I am trying to create a recordset that takes a date which is on the current form, and uses that to set the recordset to every record which has a date previous to the one entered on that form. Using this code in the on click event I keep getting a data type mismatch error.
PurgeRst.Open "SELECT * FROM [Item File] WHERE [Date] <= """ & Me!DeleteStartDate & """", _
CurrentProject.Connection, adOpenStatic, adLockOptimistic
Any Ideas on where this code is going wrong?
Thanks
PurgeRst.Open "SELECT * FROM [Item File] WHERE [Date] <= """ & Me!DeleteStartDate & """", _
CurrentProject.Connection, adOpenStatic, adLockOptimistic
Any Ideas on where this code is going wrong?
Thanks