Hi Group:
I'm trying to enable/disable a command button called cmdSelect in a subform. I'm getting object doesn't suport this property or method. Any ideas?
If [txtCurrentPeriod] <> [txtPeriodHeader] Then
Me!lblUnlock.Visible = False
Me!lblLocked.Visible = True
Me![subformDetail].Form.AllowEdits = False
Me![subformDetail].Form.AllowDeletions = False
Me![subformDetail]!cmdSelect.Enable = True
End If
If [txtCurrentPeriod] = [txtPeriodHeader] Then
Me!lblLocked.Visible = False
Me!lblUnlock.Visible = True
Me![subformDetail].Form.AllowEdits = True
Me![subformDetail].Form.AllowDeletions = True
Me![subformDetail]!cmdSelect.Enable = False
End If
End Sub
I've also tried different syntax to no avail Forms!frmPostAppliedCash!subformDeail!cmdSelect.Enable = False
I don't understand why this doesn't work??!! I've done this hundreds of time!
Thanks for you time
I'm trying to enable/disable a command button called cmdSelect in a subform. I'm getting object doesn't suport this property or method. Any ideas?
If [txtCurrentPeriod] <> [txtPeriodHeader] Then
Me!lblUnlock.Visible = False
Me!lblLocked.Visible = True
Me![subformDetail].Form.AllowEdits = False
Me![subformDetail].Form.AllowDeletions = False
Me![subformDetail]!cmdSelect.Enable = True
End If
If [txtCurrentPeriod] = [txtPeriodHeader] Then
Me!lblLocked.Visible = False
Me!lblUnlock.Visible = True
Me![subformDetail].Form.AllowEdits = True
Me![subformDetail].Form.AllowDeletions = True
Me![subformDetail]!cmdSelect.Enable = False
End If
End Sub
I've also tried different syntax to no avail Forms!frmPostAppliedCash!subformDeail!cmdSelect.Enable = False
I don't understand why this doesn't work??!! I've done this hundreds of time!
Thanks for you time