I need a (event) button on the main form to open a form in ms access, the combination alt R has to be automatically entered and the form needs to close after the data has bean read.
The combination keys "alt r" is needed to read data from the barcode reader.
After reading the data in the new form another subform on the main form needs to reload because the data that is entered needs to show the new data on this subform
I use the code for the On click event but the code for the shortkey and reload (requery?) the subform is needed
Code: Select all
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Offer"
DoCmd.OpenForm BarcodeDataForm, , , stLinkCriteria
(shortkey code to read data from scanner "alt r")
DoCmd.Close acForm, BarcodeDataForm
Best regards,
Michiel