Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UPDATE Finding Records not in Where Clause
Message
 
 
To
25/09/2008 15:20:35
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01350753
Message ID:
01350765
Views:
16
Remove FROM clause. It's needed when you want to join to some other table.

>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
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform