Hide a section based on contents at run-time

G

Guest

Can you specify more than one fields to suppress header the when there are no
data?
below is for one field but I have to use more than one field. If it is yes,
could you also, show me the syntax? Thank you in advance.

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
Cancel = (Nz(Trim([LaborCatagory]), "") = "")
End Sub
 
G

Guest

If I understand correctly:
Cancel = Nz(Trim([LaborCatagory]), "") = "" OR Nz(Trim([another field]),
"") = ""

You didn't say how you wanted to "use more than one field".
 
G

Guest

Thank you for the reply. I wanted to use the "AND" and I'll give it a try.

Duane Hookom said:
If I understand correctly:
Cancel = Nz(Trim([LaborCatagory]), "") = "" OR Nz(Trim([another field]),
"") = ""

You didn't say how you wanted to "use more than one field".
--
Duane Hookom
Microsoft Access MVP


skk said:
Can you specify more than one fields to suppress header the when there are no
data?
below is for one field but I have to use more than one field. If it is yes,
could you also, show me the syntax? Thank you in advance.

Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
Cancel = (Nz(Trim([LaborCatagory]), "") = "")
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top