ivonsurf123
Registered User.
- Local time
- Today, 09:46
- Joined
- Dec 8, 2017
- Messages
- 69
Access 2010, I am trying to disable "Give back" if I select it from the combobox, but is not working now, before it was because I was using a List, but I am using a query now, any help will be appreciate it.
If Me.LeavingGroupProfile.RowSource = "SELECT tbl_LeavingGroupProfile.LeavingGroupID, tbl_LeavingGroupProfile.LeavingGroupName " & _
"FROM tbl_LeavingGroupProfile " & _
"WHERE (((tbl_LeavingGroupProfile.LeavingGroupName) = 'Give Back' " & _
"ORDER BY tbl_LeavingGroupProfile.LeavingGroupName; " Then
Me.Reason_for_Leaving.Enabled = False
Else
Me.Reason_for_Leaving.Enabled = True
End If
:banghead:
If Me.LeavingGroupProfile.RowSource = "SELECT tbl_LeavingGroupProfile.LeavingGroupID, tbl_LeavingGroupProfile.LeavingGroupName " & _
"FROM tbl_LeavingGroupProfile " & _
"WHERE (((tbl_LeavingGroupProfile.LeavingGroupName) = 'Give Back' " & _
"ORDER BY tbl_LeavingGroupProfile.LeavingGroupName; " Then
Me.Reason_for_Leaving.Enabled = False
Else
Me.Reason_for_Leaving.Enabled = True
End If
:banghead: