FIX: GP Fault or No Records Returned If Invalid Dates in RQBELast reviewed: October 20, 1997Article ID: Q120792 |
2.5x 2.6x | 2.00 2.5x 2.6x
WINDOWS | MS-DOSkbtool kbprb The information in this article applies to:
SYMPTOMSWhen using the RQBE tool, if you select a date field in the Selection Criteria section and the BETWEEN clause contains an invalid date, FoxPro may return a query with zero records found. If the first date in the EXAMPLE section is invalid, FoxPro returns an "Invalid Date" error. If the second date is invalid, FoxPro runs the query but returns zero records. When you enter the SELECT statement in the command window or in a program and that SELECT statement contains invalid dates in the BETWEEN clause, no error is returned regardless whether the invalid date is the first or second date. In addition, FoxPro for Windows can cause a general protection (GP) fault if the second date is invalid. After pressing the ESC key to exit from the browse mode when running DO QUERY, if you press the LEFT ARROW or RIGHT ARROW key, the browse comes back up again with zero records. Then if you press the ESC key to exit from the browse and click the mouse one or more times, a GP fault occurs. NOTE: This behavior does not occur when using the Visual FoxPro Query Designer.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Visual FoxPro 3.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: VFoxWin fixlist3.00 FoxWin FoxDos 2.00 2.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |