I have a retail client that I am designing a custom application for in VFP 9 that will utilize scanned barcodes to update received purchase orders. I am using a third party Active X control from ID Automation in an OLE container on the VFP form, the barcode scans the ASCII output of the barcode to a text box on the form in this case it is a purchase order number. The program then queries an SQL database to return the line items of the PO into a grid on the form. Based upon a condition of the ASCII string returned, for example if the left two digits of the value returned from the scanner does not equal 'PO' the application pops up a messagebox that indicates the scanned value is not a valid PO number, in the case the end user scans a barcode that is not a valid PO. But I also want the scanner to beep twice if this condition is not met so it alerts the person scanning the barcode there is a problem in the case they are not looking at the computer....presently the scanner beeps once after a succesful decode and in this case if the left two digits of the ASCII output does not equal 'PO' I want the scanner to beep twice or three times. I have played around with the ADF rules in the 123SCAN application that comes with the scanner but I am unable to create an ADF rule that will allow me to accomplish this. Does anybody have any experience with the ADF rules in the 123SCAN.EXE application? Is there a way accomplish this?