Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UPDATE Finding Records not in Where Clause
Message
De
08/10/2008 03:44:22
 
 
À
25/09/2008 15:20:35
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01350753
Message ID:
01353569
Vues:
12
>UPDATE: The _TALLY is working. ALL the records are getting updated, but they do NOT match the WHERE clause. The variables are today's date and the table contains various date values.
>
>Why would the _TALLY for this be 41 (all the records in the table) if there isn't one match to the WHERE clause? There are no records with the field values of the m.DOSBegin and m.DOSEnd variables. And, nothing seems to be updated, as it should be. But what's with the _TALLY value?
>
>	UPDATE EligAct SET ;
>		ActStatus = ALLTRIM(m.ActStatus) ;
>		ActDate = DATE(), ;
>		ActType = 'On Demand' ;
>		FROM EligAct ;
>			WHERE ;
>				EligAct.PatNum = THISFORM.txtPat_No ;
>				AND EligAct.DOSBegin = m.DOSBegin ;
>				AND EligAct.DOSEnd = m.DOSEnd
>	IF _TALLY = 0 && No match found
>
try
	UPDATE EA SET ;
		ActStatus = ALLTRIM(m.ActStatus) ;
		ActDate = DATE(), ;
		ActType = 'On Demand' ;
		FROM EligAct EA ;
			WHERE ;
				EA.PatNum = m.THISFORM.txtPat_No ;
				AND EA.DOSBegin = m.DOSBegin ;
				AND EA.DOSEnd = m.DOSEnd
	IF _TALLY = 0 && No match found
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform