Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    123

    Unanswered: Visible property on label

    How do I set the Visible property on a lable using code? I have a label control on a report that is supposed to show up when there are no records, and be hidden when there are records. But the statements below returned "Object doesn't support this property or method."

    If intRecords = 0 Then
    lblNoRecords.Visible = True
    Else
    lblNoRecords.Visible = False
    End If

  2. #2
    Join Date
    Sep 2003
    Location
    MI
    Posts
    3,713
    It works for me ... Access version? Also, where are you trying to hide/unhide the label at in the report?
    Back to Access ... ADO is not the way to go for speed ...

  3. #3
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Your code should be on the onformat of that section in the report.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •