Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UPDATE Finding Records not in Where Clause
Message
From
25/09/2008 15:20:35
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
UPDATE Finding Records not in Where Clause
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350753
Message ID:
01350753
Views:
64
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
Next
Reply
Map
View

Click here to load this message in the networking platform