I have a Form shown in continous view that has a button that is NOT Enabled. Whne the record becomes current, I use VB to chaeck another object on that form and on that record. If the condition of that object is checked (check box), I use a Me statement to enable the button.
However....this enables the button on all records at once. I only want it to enable the button on the current record if the conditions are met.
Help please...I know this should be easy but.
Private Sub Form_Current()
If [Forms]![frm_MainAdminSetup]![LockCourse] = -1 Then
Me.ArchiveCrsBtn.Enabled = True
ElseIf Me.ArchiveCrsBtn.Enabled = True Then
Me.ArchiveCrsBtn.Enabled = False
End If
End Sub
However....this enables the button on all records at once. I only want it to enable the button on the current record if the conditions are met.
Help please...I know this should be easy but.
Private Sub Form_Current()
If [Forms]![frm_MainAdminSetup]![LockCourse] = -1 Then
Me.ArchiveCrsBtn.Enabled = True
ElseIf Me.ArchiveCrsBtn.Enabled = True Then
Me.ArchiveCrsBtn.Enabled = False
End If
End Sub