We have written a customization for RMS, when a cashier scans an item that has a departmentID of 8 in our system, a userform pops up on screen with checkboxes and a combobox. when the userform is loaded, a connection is established to the database and a recordset is opened, via the code.
the combobox is populated by a query that is run against the recordset, and the query that is run is decided in the code based on what checkboxes on the form are checked or unchecked. we have been using this for nearly a month and have had not had any problems.
here is the problem we are having now: our combobox is populating with incorrect data. there are items showing up in the combobox that should not be there. when we enter these queries in administrator, they results of the query are correct. but when the same query is run against our recordset in the code, the results are different.
we have tried reindexing the database, this did not help. any ideas?
and is there a more efficient was for us to query the database via code, rather than creating a new connection to the database? is there a way to utilize the connection to the database that is already established through the active POS session, and directly access information in specific tables of the database via qsrules?
thanks, kevin