I've got a bin # table that has about 26,000 records in it(A001 TO Z963). We recently changed our bin numbering system to start with AA001. Also in the bin record there are a few erronious entered bin#s.
It's taking too long to find that last record. Below is my snippet of code. Is there a better way of doing this.
FIND LAST WhseBin WHERE WhseBin.Company = CUR-COMP AND WhseBin.WarehouseCode = "ASP"
AND (length(WhseBin.BinNum) > 5) AND (WhseBin.BinNum <> "L824+") AND (WhseBin.BinNum <> "U5021")
AND (WhseBin.BinNum <> "M0733") AND (WhseBin.BinNum <> "M724+")
AND (WhseBin.BinNum <> "N0127") AND (WhseBin.BinNum <> "N0128")
AND (WhseBin.BinNum <> "NOMTR"). NO-LOCK.
I have 1 index in the table its
Company character A
WareHouseCode character A
BinNum character A
It's taking too long to find that last record. Below is my snippet of code. Is there a better way of doing this.
FIND LAST WhseBin WHERE WhseBin.Company = CUR-COMP AND WhseBin.WarehouseCode = "ASP"
AND (length(WhseBin.BinNum) > 5) AND (WhseBin.BinNum <> "L824+") AND (WhseBin.BinNum <> "U5021")
AND (WhseBin.BinNum <> "M0733") AND (WhseBin.BinNum <> "M724+")
AND (WhseBin.BinNum <> "N0127") AND (WhseBin.BinNum <> "N0128")
AND (WhseBin.BinNum <> "NOMTR"). NO-LOCK.
I have 1 index in the table its
Company character A
WareHouseCode character A
BinNum character A