matrixindicator
IS-IT--Management
I have a delete command on each row of a subform. It works fine. If the users clicks an empty row access giving an error dialog box to say that he can not delete an empty row.
How can I say, if it is a empty row do nothing and do not show an error dialog box (docmd.setwarnings false ?).
How can I say, if it is a empty row do nothing and do not show an error dialog box (docmd.setwarnings false ?).
Code:
Forms!F01_ORDER!FS_T02_ORDER.SetFocus
DoCmd.SetWarnings False
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings True