Hello, I have a form containing a button to approve documents, the button adds a time and date stamp as well as an 'Approved' field in the table once click. I want to make it so that the button can only be clicked once. I have the piece of code to do that, but it won't work, says it cannot find the object. I can't, for the life, of me figure out what is wrong. Someone please help???
Code:Private Sub form_Load() If DLookup([Q1ApprovalStatus], [tblCustomerSpecification], Q1ApprovalStatus = "Approved") Then Forms![frmSpecification]![Command189].Enabled = True Else Forms![frmSpecification]![Command189].Enabled = False End If End Sub