If form (or subform) is not in datasheet view, then there are no columns to hide. Set a form for datasheet view with DefaultView property. If you don't know how to do this, then why does your image look like datasheet?
Can't use both versions of code in the same place. One example is for behind main form and one for behind subform.
Hiding column with OnCurrent event won't hide just for that record - it hides for ALL records.
Is subform container control named subview or sebview?
Really should have Option Explicit at top of every code header.
https://docs.microsoft.com/en-us/of...User-Interface-Help/option-explicit-statement
Will have to manually type into existing modules but can set Access to automatically include this for new modules.
On the VBA editor menu > Tools > Options > check Require Variable Declaration