Afternoon everyone!
I have a quick query in regards to hiding a text box, label, etc, - within the detail section of my report.
On the On Format property, I have the following code:
'If time (hh:mm) does not appear...
If IsNull(Me.txtHours) And IsNull(Me.txtMinutes) Then
Me.txtHours.Visible = False
Me.txtMinutes.Visible = False
Me.lblColon.Visible = False
'Print 'Hours not available this week'...
Me.lblAbsence.Visible = True
Else
Me.txtActualHours.Visible = True
Me.txtActualMinutes.Visible = True
Me.lblColon.Visible = False
End If
I need to check each record using the above code, that appears within the detail section of my report.
Unfortunately, when I activate/open the report, I get the 'lblAbsence' message printed for all records, - not just those for which Me.txtHours and Me.txtMinutes are 'Null'.
Any ideas, anyone?
[blue](I'm still using MS Access 97 for this project, unfortunately!!!)[/blue].
Example of current report output:
01/10/2004 [Hours not available this week]
08/10/2004 [Hours not available this week]
15/10/2004 [Hours not available this week]
....and so on.
Example of report output I wish to achieve(!!):
01/10/2004 -4:32
08/10/2004 [Hours not available this week]
15/10/2004 27:09
....and so on.
Many thanX in advance, 'Guys'!
[highlight]Magnetar[/highlight]![[atom] [atom] [atom]](/data/assets/smilies/atom.gif)
I have a quick query in regards to hiding a text box, label, etc, - within the detail section of my report.
On the On Format property, I have the following code:
'If time (hh:mm) does not appear...
If IsNull(Me.txtHours) And IsNull(Me.txtMinutes) Then
Me.txtHours.Visible = False
Me.txtMinutes.Visible = False
Me.lblColon.Visible = False
'Print 'Hours not available this week'...
Me.lblAbsence.Visible = True
Else
Me.txtActualHours.Visible = True
Me.txtActualMinutes.Visible = True
Me.lblColon.Visible = False
End If
I need to check each record using the above code, that appears within the detail section of my report.
Unfortunately, when I activate/open the report, I get the 'lblAbsence' message printed for all records, - not just those for which Me.txtHours and Me.txtMinutes are 'Null'.
Any ideas, anyone?
[blue](I'm still using MS Access 97 for this project, unfortunately!!!)[/blue].
Example of current report output:
01/10/2004 [Hours not available this week]
08/10/2004 [Hours not available this week]
15/10/2004 [Hours not available this week]
....and so on.
Example of report output I wish to achieve(!!):
01/10/2004 -4:32
08/10/2004 [Hours not available this week]
15/10/2004 27:09
....and so on.
Many thanX in advance, 'Guys'!
[highlight]Magnetar[/highlight]
![[atom] [atom] [atom]](/data/assets/smilies/atom.gif)