Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function Not Working in SQL
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Function Not Working in SQL
Miscellaneous
Thread ID:
00462422
Message ID:
00462422
Views:
42
I'm running into a problem with date functions not working when placed in a SQL statement:

This works:

? Date(Year(tbl.myDate), Month(tbl.myDate), 1)

This returns "Function argument value, type or count is invalid":

select Date(Year(tbl.myDate), Month(tbl.myDate), 1) as myDate from tbl

What am I missing here?
kenweber
GCom2 Solutions
Microsoft Certified Professional

Next
Reply
Map
View

Click here to load this message in the networking platform