I'm fairly new to VBA, and I'm trying to do an If Then statement that will allow a button on my form to becaome enabled only when the form is in data entry mode, acFormAdd, but it doesn't seem to like what I'm doing. Is this even possible?
Here's what I've tried:
If Forms!ProjectDetails!acFormPropertySettings = acFormAdd Then
Forms!ProjectDetails!cmdCommit_Click.Enabled = True
End If
Here's what I've tried:
If Forms!ProjectDetails!acFormPropertySettings = acFormAdd Then
Forms!ProjectDetails!cmdCommit_Click.Enabled = True
End If