Below is the code that needs to be changed to open the form in the datasheet view: I just don't know where to change the code. Can anyone help and advise how to find where to change the code?
DoCmd.OpenForm stDocName, acNormal, , , , acDialog
CHANGE TO:
DoCmd.OpenForm stDocName, acFormDS, , , , acDialog
DoCmd.OpenForm stDocName, acNormal, , , , acDialog
CHANGE TO:

DoCmd.OpenForm stDocName, acFormDS, , , , acDialog