i dont know whether this is possible or not, that why i intend to post up here..
If let said i have 2 access form, Form A and Form B. When certain criteria have fullfill in Form A, Form B button will be disable, is this situation can happen?
i have wrote some code, but dont know how to continue...
[VBA]
Private Sub disableButton(frm As Form)
Dim ctl As Control
For Each ctl In frm.Controls
If StrComp(ctl.Name, "xxx") Then
'intend to disable the button here
Exit For
End If
Next ctl
End Sub
[/VBA]