Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

valid REPLACE statement?

Status
Not open for further replies.

kenndot

Programmer
May 15, 2001
316
US
I am not sure if this is even valid, can someone tell me? If it isn't, is there a similar way of accomplishing this?

replace intbills.prevproc WITH .t. ;
FOR adddate = DATE() ;
while claimno IN (select claimno FROM csrOld)

Can I do a lookup like that within a REPLACE statement? I get the function missing error so I'm assuming I just can't do that last clause..

thanks
 
No, this isn't valid syntax. Check out the SQL UPDATE command for a similar capability.

Rick
 
A little code like this will do the trick

Code:
select crsold
scan for adddate = date()
   update intbills set prevproc = .T. where claimno = crsold.claimno
endscan

WTrueman
...if it works dont mess with it
 
i did end up with an update statement, thanks guys
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top