I might not be understanding the logical tests (i.e. what if the date passes but the license does not, or vice versa?) but I'm thinking they can be combined. Plus, it seems license is visible regardless, so it may as well be set once. The first avoids having to evaluate the tests for every command button.
Code:
Dim ctrl As Control
Me.license.Visible = True 'seems to be the case regardless, so only written once
If Forms![mainmenuskeleton]!todaysdate > #4/1/2017# Or Me.license <> "p060117" Then
For Each ctrl In Me.Controls
If ctrl.Type = acCommandButton Then ctrl.Enabled = False
Next
Else
For Each ctrl In Me.Controls
If ctrl.Type = acCommandButton Then ctrl.Enabled = True
Next
End If
Another way is less code, but requires the evaluation to take place for each command button. Either way is a bit shorter than what you had; just thought I'd show some alternatives. I have to presume all is nested correctly as I can't test the above. Sure would be embarrassing if it wasn't, given that's the initial subject here.
Code:
Dim ctrl As Control
Me.license.Visible = True
For Each ctrl In Me.Controls
If Forms![mainmenuskeleton]!todaysdate > #4/1/2017# Or Me.license <> "p060117" Then
If ctrl.Type = acCommandButton Then ctrl.Enabled = False
Else
If ctrl.Type = acCommandButton Then ctrl.Enabled = True
End If
Next