Virus Database: 431 - Release Date: 27-04-2004
In the Report Detail Section Format event:
[ControlB].Visible = Not [ControlA] = SomeCriteria
[ControlC].Visible = Not [ControlA] = SomeCriteria
Hi!
I've tryed this code
Private Sub Detalhe_Format(Cancel As Integer, FormatCount As Integer)
[Hour].Visible = Not [Service] = Vigilante
[Discipline].Visible = Not [Service] = Juri
End Sub
But with no sucess...
...any sugestion?
I'm a neeeeeeeeeewby :-((
AF
What are Vigilante and Juri?
Are they Field names (in which case your criteria is that the value in
[Service] should equal the value in [Vigilante]), or are they the
actual [Service] text value you are looking for?
If they are the text values that may be in the field [Service], you
must enclose them within quotes:
[Hour].Visible = Not [Service] = "Vigilante"
[Discipline].Visible = Not [Service] = "Juri"
Using the above, [Hour] and [Discipline] will be visible at all times
EXCEPT when the value of [Service] is "Vigilante' or "Juri".
Also... Hour is an Access/VBA reserved word and should not be used as
a field name.
See the appropriate Microsoft KnowledgeBase article for your version
of Access:
109312 'Reserved Words in Microsoft Access'
209187 'Acc2000: 'Reserved Words in Microsoft Access'
286335 'ACC2002: Reserved Words in Microsoft Access'