PRB: DataEnvironment: DataReport Moves Form To EOF (190607)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q190607 SYMPTOMS
When you have a DataReport and Form with controls bound to the same
DataEnvironment, opening the report causes the form to be blank.
CAUSE
When the report steps through the records, it is moving the current
position for the DataEnvironment and stops when it reaches EOF (end-of-
file). This becomes the current position for the form, which displays blank
fields.
RESOLUTION- Open a second copy of the DataEnvironment in code and set the
DataReport's DataSource property to this variable instead of the global
DataEnvironment object.
-or-
- Reset the record pointer from a timer event.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB190607 |
---|
|