The information in this article applies to:
SUMMARYIn Visual FoxPro, you can format date type input data as {mm/dd/yy}, or, if you type directly in a date field, as mm/dd/yy. However, when you perform a remote query on an SQL table and format the data in this fashion, an ODBC error is the result. MORE INFORMATION
If, in a remote query, you pass date, time, or timestamp values to an SQL
table, you need to format the data with the following escape clauses:
You can use the following syntax to create a remote view that queries
datetime information:
In the View Designer, ensure that the date, the time, or the timestamp
values are formatted as needed in the Examples field of the Selection
Criteria tab. Once the view is saved, the information in the Examples field
is saved with the view. If the view is opened and modified, the information
disappears and has to be typed back in the Examples field.
Note that when you pass the field name (not a value) as a parameter to a
remote query, you do not receive an ODBC error because Visual FoxPro
performs a conversion.
REFERENCESODBC 2.0 Programmer's Reference and SDK Guide, pp.50-52, Microsoft Press. Additional query words:
Keywords : kbinterop kbVFp kbVFp300 kbVFp300b kbVFp600 FxinteropOdbc |
Last Reviewed: August 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |