I have a database comprising a number of different forms and each form has an identical text box "[scan input]" on it which is used for barcode scanner entries.
I currently have a duplicate block of code on each form, on the 'after update' property of the text box, which processes the bar code scans.
I would prefer to have a single global procedure which is called from all of the forms but just need to know how to set values on the forms. Obviously I can't refer to the form by name.
For instance, to clear the entry in the text box ready for the next barcode scan, in my local procedure I just use;
[scan input] = Null
My global procedure doesn't seem to like this.
Is there an easy way to do this?
I currently have a duplicate block of code on each form, on the 'after update' property of the text box, which processes the bar code scans.
I would prefer to have a single global procedure which is called from all of the forms but just need to know how to set values on the forms. Obviously I can't refer to the form by name.
For instance, to clear the entry in the text box ready for the next barcode scan, in my local procedure I just use;
[scan input] = Null
My global procedure doesn't seem to like this.
Is there an easy way to do this?