I have a command file that I've been using for years.  One of the steps is, if 
the Casenum field is null in the table named "actde", I populate it with data 
from another table, named "caseid."  I  make sure the SS# and DOB are the same.
Here is my command:
UPDATE actde SET casenum=T1.casenum FROM caseid T1, actde T2 WHERE  
T1.ssnum=T2.ssnum AND T1.momdob=T2.momdob and T2.casenum is null

We updated versions recently and now this command doesn't work and it doesn't 
give me an error message.  It takes me out of the application and sends me back 
to the Rbase Database Explorer screen.
If I take off the last clause "t2.casenum is null", it will work.If I reset the 
field back to null and select all that are null, it acknowledges them.If I add 
a different clause instead of T2.casenum is null, sometimes it works and 
sometimes it doesn't.
The following did not work.  I tried to just update based on the name of the 
person adding the records to the table: UPDATE actde SET casenum=T1.casenum 
FROM caseid T1, actde T2 WHERE  T1.ssnum=T2.ssnum AND T1.momdob=T2.momdob and 
T2.nameuser=.vuser
Then just to experiment, I tried a completely different field -- something that 
I would not logically use to complete my command file, but just for testing, 
and it worked.
It doesn't make sense why sometimes it works and sometimes it doesn't.  No 
typos.  Like I said, I've used this command file for many years.
I have messages and error messages set on.  I've tried with zero on and off.  I 
tried packing the database and it still doesn't work.  I have version 
9.5.2.11227.
This scares me as I use this sort of command frequently, especially when 
creating temp files for printing reports.




Reply via email to