Run time error '340'

hey everyone, i am trying to display this querie in POS. It runs fine the only problem is when i close POS i see an alert "run time error '340' control array element '5' dosent exist can anybody please see the code and tell me what i am doing wrong

var sql = "SELECT Item.Description, Item.itemLookupCode FROM Item WHERE Item.Description LIKE '" + description + "%'";

var rs = qsRules.OpenRecordSet(sql, true);

while (!rs.EOF) { document.writeln ( rs("Description").value); document.writeln (" "); document.writeln ( rs("itemLookupCode").value); document.writeln (" " ); rs.MoveNext( ); }

thanks you shoby

Reply to
Shoby
Loading thread data ...

Reply to
Shoby

I don't think the problem is in the code that you posted. This sounds more like a customPOS button that POS was looking for is gone - maybe deleted in SO Manager? It could be some other control array, but POS Buttons is the only one I can think of that is easily modified. Anyway, I think it's something outside of what you have posted...

Reply to
Glenn Adams [MVP - Retail Mgmt]

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.