How to format a date or time value to query an SQL table in Visual FoxPro (145817)
The information in this article applies to:
- Microsoft Visual FoxPro 9.0 Professional Edition
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q145817 INTRODUCTION
In Visual FoxPro, you can format date type input data as {mm/dd/yy}. Or, if
you type directly in a date field, you can format date type input data as mm/dd/yy. However, if you format the data as {mm/dd/yy} or as mm/dd/yy when you perform a
remote query on an SQL table, you experience an ODBC
error.
Note When you pass the field name as a parameter in a
remote query instead of passing a value, you do not experience an ODBC error because Visual FoxPro
performs a conversion.
REFERENCES
ODBC 2.0 Programmer's Reference and SDK Guide, pp.50-52, Microsoft Press.
Modification Type: | Major | Last Reviewed: | 4/8/2005 |
---|
Keywords: | kbhowto kbinterop KB145817 |
---|
|