Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HasData Property
Collapse the table of content
Expand the table of content

Report.HasData Property (Access)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes.

Last modified: July 28, 2015

You can use the HasData property to determine if a report is bound to an empty recordset. Read/write Long.

expression .HasData

expression A variable that represents a Report object.

The HasData property is set by Microsoft Access. The value of this property can be read only while printing or while in Print Preview.

The HasData property uses the following settings.

Value

Description

–1

The object has data.

0

The object doesn't have data.

1

The object is unbound.

You can use this property to determine whether to hide a subreport that has no data. For example, the following expression hides the subreport control when its report has no data.

Me!SubReportControl.Visible = Me!SubReportControl.Report.HasData
Show:
© 2015 Microsoft