BlueFraggle
Registered User.
- Local time
- Today, 13:29
- Joined
- Jul 25, 2007
- Messages
- 10
Hi everyone, I am hoping one of you kind souls will be able to help me.
I have the following piece of code (in the OnCurrent Event Procedue of a form):
However it is not working as required. If Type = "Sample" but Interface does not equal "N/A" the 3 button are still enabled.
I dont think the AND part of the IF statement is working. I need both statements to be True for the buttons to be enabled.
Any ideas?
Thanks
I have the following piece of code (in the OnCurrent Event Procedue of a form):
Code:
If Me.[Type] = "Sample" And Me.[Interface] = "N/A" Then
Me![Button 1].Enabled = True
Me![Button 2].Enabled = True
Me![Button 3].Enabled = True
End If
However it is not working as required. If Type = "Sample" but Interface does not equal "N/A" the 3 button are still enabled.
I dont think the AND part of the IF statement is working. I need both statements to be True for the buttons to be enabled.
Any ideas?
Thanks