Run time error '340'

Nov 14, 2005 2 Replies

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



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...

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required