This should be a simple question for the pro's. I have a simple query that gets info from a table. If I hardcode the date in the query ie; between #01/01/2007# and #01/31/2007# the results are returned quickly, maybe 5 seconds or so.
However, if I get the date range from a form ie; Between [forms]![frmMain]![Date1] And [forms]![frmMain]![Date2] the same query takes upwards of 5 mins to run!
Can anyone tell me why this is? I have searched, but was unable to find anything on this topic. If you dont want to answer, could you at least give me some keywords to search for this topic?
Thanks!
However, if I get the date range from a form ie; Between [forms]![frmMain]![Date1] And [forms]![frmMain]![Date2] the same query takes upwards of 5 mins to run!
Can anyone tell me why this is? I have searched, but was unable to find anything on this topic. If you dont want to answer, could you at least give me some keywords to search for this topic?
Thanks!