Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ttod
Message
From
15/03/2001 14:46:32
 
 
To
15/03/2001 14:42:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Ttod
Miscellaneous
Thread ID:
00485533
Message ID:
00485537
Views:
9
>I have a data file that has a datetime field and I need to allow a user to get records between 2 dates. In the view builder I select ttod(dtfield) >= userstartdt (where userstartdt) is a date variable.
>
>The query blows up saying operator operand type mismatch. If I substitute date() in for userstartdt the query runs fine.
>
>Any Ideas?

UserStartDT, as used in your expression, *must* be a Date type - which is not what your variable name implies. Look at the actual value and type of UserStartDT in the debugger or at the command prompt.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform