First, don't just repeat a whole block of text from a post if it doesn't add any clarification.
Second, when someone suggests you provide a link to the quoted code, please do so. I think I found where you got this from and will comment on it at the end.
Third, use code tags, at least when there is a significant amount of code involved.
Fourth, separate your comments from code or quotes so we can tell where each begins and ends.
In that case, you'd use the code builder and paste everything in between the Sub/End Sub or Function/End Function for functions) so that those lines are not duplicated. Obviously, the names of things on or about your form would have to be the same as what you're pasting.
For this object and this event you'd choose the code builder from that object's property sheet line (as per your picture) and paste in these green lines only
Code:
Private Sub Form_Load()
DoCmd.SetWarnings True
Me.OrderBy = ""
Me.OrderByOn = True
Me.Filter = ""
Me.FilterOn = False
End Sub
otherwise you will end up with this
Code:
Private Sub Form_Load()
Private Sub Form_Load()
DoCmd.SetWarnings True
Me.OrderBy = ""
Me.OrderByOn = True
Me.Filter = ""
Me.FilterOn = False
End Sub
End Sub
and will cause an error. So now the aforementioned comment:
If you already have code in these events or if the matching event you want to create already has "embedded macro" listed there be careful or you will mess it up. Not to be condescending, but I would definitely monkey around with a copy of your database, for I suspect you know nothing of what you are about to alter. Reason is, it appears you copied code which applies to someone else's report when you are trying to affect a form, and are asking if you should just paste it in somewhere. The thread I looked at also states that the modifications you seem to need where applied to subform data sheets as well as regular forms thusly:
SUBFORMS
Code:
Private Sub Form_Load()
DoCmd.SetWarnings True
Me.OrderBy = ""
Me.OrderByOn = True
Me.Filter = ""
Me.FilterOn = False
End Sub
NAVIGATION FORMS
Code:
Private Sub Navigation_Service_Main_Enter()
DoCmd.SetWarnings False
End Sub
This can be found here: https://social.msdn.microsoft.com/Fo...orum=accessdev
In my maybe not so valuable opinion, my solution would be to NOT use navigation forms. Really, the more MS seems to make database creation require less and less knowledge about it, the worse the confusion seem to be getting.