Thanks again so much for your help, and I am sorry to bother you. I am so inexperienced! Here is another code set, that makes more sense, I used your example from before.
Private Sub Program_Interests_AfterUpdate()
If Me![Program Interests] = "Study Abroad" Then
Me![SA Programs interested in].Enabled = True
Else
Me![SA Programs interested in].Enabled = False
End If
If Me![Program Interests] = "NSE" Then
Me![NSE Programs Interested in].Enabled = True
Else
Me![NSE Programs Interested in].Enabled = False
End If
If Me![Program Interests] = "Both" Then
Me![SA Programs interested in].Enabled = True
Else
Me![SA Programs interested in].Enabled = False
End If
If Me![Program Interests] = "Both" Then
Me![NSE Programs Interested in].Enabled = True
Else
Me![NSE Programs Interested in].Enabled = False
End If
End Sub
Now, the problem is that the true false statement establed with the picks "NSE" and "Study Abroad" are no longer functioning according to the code. As if the "Both" coding is overriding them. Any help be greatly appreciated. Again, I am sorry to bother you. Thank you so much.
-Stephen
Quote:
Originally Posted by PEB
Hi,
I don't think that this will work
1. Me![SA Programs interested in].Enabled have to be True or False and anything other
2. I don't understand what you want to do with an expression like this:
Me![SA Programs interested in].Enabled = Me![Program Interests] = "Study Abroad"
In certain languages I've seen the double equal but in VB I've never used!
If you want to set the value of
Me![SA Programs interested in].Enabled = "Study Abroad" - it is impossible!
AND to set
Me![Program Interests] = "Study Abroad"
simply write it! :)
if you want to make a condition do it as:
If Me![Program Interests] = "Study Abroad" Then Me![SA Programs interested in].Enabled=True
Hope that helps! :)