Hello guys.
I've got an idea for something I'm trying to implement that I suspect is actually impossible to do in Access, but thought I'd see if any of you guys knew of a way before I dismiss it.
I'm developing an Access database that handles my company's orders, purchases, quotation and deliveries etc. I've incorporated barcodes in order to quickly enter IDs and reference numbers but I'm also now starting to play about with creating custom commands and functions that can also be triggered by scanning a barcode.
I've got this working just great if you have the correct form open and the correct field has focus. You scan the code and it breaks it down into three chunks, the section of the DB, the command you want to apply and the record against which you want to run the command. Switch/Case is then used to apply the commands.
What I want to do however, is implement a system whereby a certain barcode can be scanned and it doesn't matter which form/field you have open/selected. I'm guessing I need to create some sort of 'listener' that runs silently in the background and detects when a specific string is entered.
Now the only way I can see to get this to work is to create a function and apply it to every single element on every single form, but this is inelegant and far from practical/feasible.
So does anyone know of a way to incorporate the above?
I've got an idea for something I'm trying to implement that I suspect is actually impossible to do in Access, but thought I'd see if any of you guys knew of a way before I dismiss it.
I'm developing an Access database that handles my company's orders, purchases, quotation and deliveries etc. I've incorporated barcodes in order to quickly enter IDs and reference numbers but I'm also now starting to play about with creating custom commands and functions that can also be triggered by scanning a barcode.
I've got this working just great if you have the correct form open and the correct field has focus. You scan the code and it breaks it down into three chunks, the section of the DB, the command you want to apply and the record against which you want to run the command. Switch/Case is then used to apply the commands.
What I want to do however, is implement a system whereby a certain barcode can be scanned and it doesn't matter which form/field you have open/selected. I'm guessing I need to create some sort of 'listener' that runs silently in the background and detects when a specific string is entered.
Now the only way I can see to get this to work is to create a function and apply it to every single element on every single form, but this is inelegant and far from practical/feasible.
So does anyone know of a way to incorporate the above?