PRB: REQUERY Function Reopens a View's Table Exclusively (149000)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
This article was previously published under Q149000 SYMPTOMS
If you requery a view to refresh it with new data, the table with which the
view is associated will be opened exclusively -- if it has been closed
after the view was opened. This occurs even if SET EXCLUSIVE is off.
Requerying a view opens the associated table if that table is not already
open.
WORKAROUND
To make sure that the table that is associated with the view stays open in
shared mode, do not close the table after the view has been opened. For
example, a form may close the table; and then the view gets requeryed.
Another possible resolution to repopulating a control with new data is to
set the rowsource (or recordsource) to an empty string, perform the requery
and then set the rowsource or recordsource to the original value, as
follows:
ThisForm.Combo1.Rowsource=""
Requery()
ThisForm.Combo1.Rowsource="<path and name>".
STATUS
This problem has been fixed in Visual FoxPro 5.0.
Modification Type: | Major | Last Reviewed: | 9/30/2003 |
---|
Keywords: | kbprb KB149000 |
---|
|