Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error: Function argument value, type, or count is invali
Message
From
16/07/2004 19:06:31
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
16/07/2004 12:32:26
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00925243
Message ID:
00925404
Views:
13
>I'm having this error: function argument value, type, or count is invalid, when i'm trying to do this query:
>
>
select 	llamadas.numero				as numero		,;
[snip]
>		    FULL JOIN helpdesk!usuarios_cia ON  Llamadas.usuario = Usuarios_cia.codigo ;
>	 where 	Sys(11,Llamadas.fllamada) >= sys(11,m.ini) and;
>            Sys(11,Llamadas.fllamada) <= Sys(11,m.fin) ;
>order by numero ;
>group by numero
>
>What's wrong with the query?

Are you sure m.ini and m.fin are dates, and not strings containing dates? Besides, you can compare dates directly, without comparing their Julian date numbers. The sys(11, dDate) function returns the Julian date as a string, but it doesn't matter, the string always contains seven digits for any valid date (between 0001-01-01 and 9999-12-31), but it's completely unnecessary.

Try this:
... where Llamadas.fllamada between m.ini and m.fin
If m.ini and m.fin are not the same type as Llamadas.fllamada, you should get a "datatype mismatch" error.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform