I am attempting to work with an .mdb file of about 15k+ entries. I'm using ado in vbscript and asp query the database. The query I am making looks something like this. x in this case is just a variable that holds the current date in mm/dd/yyyy
form.
rs.Open "SELECT [Item Number], [Qty], [Delivery Point]
FROM [ItemBoard]
WHERE format([Submitted Date/Time], 'mm/dd/yyyy') = '"&x&"'
AND [OrderUrgency] = 'Rush'
AND ([Delivered] is NOT NULL OR [Delivered Short] is NOT NULL)", conn
My issue is that this query takes upwards of one minute to complete, which is way too high. What's more, if I change the Where clause to only have one of the 3 statments rather than all 3 of them, the time to completion of the query only goes down to about 50-55 seconds. Other than the structure of the database itself, are there any likely candidates for causes to this issue?