The information in this article applies to:
SUMMARY
Moderate: Requires basic macro, coding, and interoperability skills.
MORE INFORMATION
You can use DeleteControl and DeleteReportControl statements to delete a
control that exists on a form or report in Design view. Both statements
require a string value that represents the name of the form or report and
a string value that represents the name of the control.
In Microsoft Access 2.0, 7.0, and 97
In Microsoft Access 1.x
When you delete a control using DeleteControl or DeleteReportControl,
there is no visual feedback that the control is gone if the form or report
is not minimized. The control still appears as if it were not deleted
even though you cannot click it to give it focus. To make the deleted
control disappear, you must repaint the form Design window by minimizing
it and then restoring it.
If you have a report available in Design view, you can create groups for it in a procedure by using the CreateGroupLevel() function. Here is the syntax for CreateGroupLevel():
ReportName is a string expression representing the report name.
Expression is a string expression representing the name of the field or calculated field that you want to group by. HasHeader and HasFooter indicate whether the group includes a group header or group footer, respectively. The values are True and False. When it runs, CreateGroupLevel() adds a group at the innermost level. For example, if one group already exists, CreateGroupLevel() creates a second group within the first group. CreateGroupLevel() returns a number that indicates which level it created, beginning with zero. In the example just mentioned, CreateGroupLevel() returns 1 because it is the second group, and the first group was Group zero. Additional query words:
Keywords : kbprg RptLayou |
Last Reviewed: October 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |