Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error: Function argument value, type, or count is invali
Message
De
16/07/2004 19:06:31
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
16/07/2004 12:32:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00925243
Message ID:
00925404
Vues:
12
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform